diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/macintosh/adb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index e5d446804d32..cae52485208a 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -862,7 +862,8 @@ adbdev_init(void) | |||
862 | adb_dev_class = class_create(THIS_MODULE, "adb"); | 862 | adb_dev_class = class_create(THIS_MODULE, "adb"); |
863 | if (IS_ERR(adb_dev_class)) | 863 | if (IS_ERR(adb_dev_class)) |
864 | return; | 864 | return; |
865 | device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), "adb"); | 865 | device_create_drvdata(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), NULL, |
866 | "adb"); | ||
866 | 867 | ||
867 | platform_device_register(&adb_pfdev); | 868 | platform_device_register(&adb_pfdev); |
868 | platform_driver_probe(&adb_pfdrv, adb_dummy_probe); | 869 | platform_driver_probe(&adb_pfdrv, adb_dummy_probe); |