diff options
Diffstat (limited to 'drivers/macintosh/adb.c')
| -rw-r--r-- | drivers/macintosh/adb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 7297c77f99cf..493e2afa191c 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
| @@ -77,7 +77,7 @@ static struct adb_driver *adb_driver_list[] = { | |||
| 77 | NULL | 77 | NULL |
| 78 | }; | 78 | }; |
| 79 | 79 | ||
| 80 | static struct class_simple *adb_dev_class; | 80 | static struct class *adb_dev_class; |
| 81 | 81 | ||
| 82 | struct adb_driver *adb_controller; | 82 | struct adb_driver *adb_controller; |
| 83 | struct notifier_block *adb_client_list = NULL; | 83 | struct notifier_block *adb_client_list = NULL; |
| @@ -902,9 +902,8 @@ adbdev_init(void) | |||
| 902 | 902 | ||
| 903 | devfs_mk_cdev(MKDEV(ADB_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "adb"); | 903 | devfs_mk_cdev(MKDEV(ADB_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "adb"); |
| 904 | 904 | ||
| 905 | adb_dev_class = class_simple_create(THIS_MODULE, "adb"); | 905 | adb_dev_class = class_create(THIS_MODULE, "adb"); |
| 906 | if (IS_ERR(adb_dev_class)) { | 906 | if (IS_ERR(adb_dev_class)) |
| 907 | return; | 907 | return; |
| 908 | } | 908 | class_device_create(adb_dev_class, MKDEV(ADB_MAJOR, 0), NULL, "adb"); |
| 909 | class_simple_device_add(adb_dev_class, MKDEV(ADB_MAJOR, 0), NULL, "adb"); | ||
| 910 | } | 909 | } |
