Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 263549
Collapse All | Expand All

(-)PortBunny050109-dev/scanner_ui/scanner_ui.c (-2 / +6 lines)
Lines 342-353 Link Here
342
		
342
		
343
		
343
		
344
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
344
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
345
		
345
346
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
347
		device_create(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny");	
348
#else
346
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
349
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
347
		device_create_drvdata(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny");	
350
		device_create_drvdata(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny");	
348
#else
351
#else
349
		class_device_create(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny");	
352
		class_device_create(portbunny_class, NULL, MKDEV(major, 0), NULL, "portbunny");	
350
#endif		
353
#endif
354
#endif
351
		
355
		
352
#else
356
#else
353
		class_simple_device_add(portbunny_class, MKDEV(major, 0), NULL, "portbunny");
357
		class_simple_device_add(portbunny_class, MKDEV(major, 0), NULL, "portbunny");

Return to bug 263549