]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/adb.c
JBD2: Use the incompat macro for testing the incompat feature.
[linux-2.6-omap-h63xx.git] / drivers / macintosh / adb.c
index 5ae28f076d257be6129d07e8a16326585ebedc03..28958101061f9a922cf4c79f7cd41c8ec3472e45 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/completion.h>
 #include <linux/device.h>
 #include <linux/kthread.h>
+#include <linux/platform_device.h>
 
 #include <asm/uaccess.h>
 #include <asm/semaphore.h>
@@ -854,7 +855,7 @@ adbdev_init(void)
        adb_dev_class = class_create(THIS_MODULE, "adb");
        if (IS_ERR(adb_dev_class))
                return;
-       class_device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), NULL, "adb");
+       device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), "adb");
 
        platform_device_register(&adb_pfdev);
        platform_driver_probe(&adb_pfdrv, adb_dummy_probe);