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"); |