[PATCH] class: convert drivers/* to use the new class api instead of class_simple

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
gregkh@suse.de
2005-03-23 10:01:41 -08:00
committed by Greg Kroah-Hartman
parent 8874b414ff
commit 56b2293595
9 changed files with 51 additions and 53 deletions

View File

@@ -77,7 +77,7 @@ static struct adb_driver *adb_driver_list[] = {
NULL
};
static struct class_simple *adb_dev_class;
static struct class *adb_dev_class;
struct adb_driver *adb_controller;
struct notifier_block *adb_client_list = NULL;
@@ -902,9 +902,8 @@ adbdev_init(void)
devfs_mk_cdev(MKDEV(ADB_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "adb");
adb_dev_class = class_simple_create(THIS_MODULE, "adb");
if (IS_ERR(adb_dev_class)) {
adb_dev_class = class_create(THIS_MODULE, "adb");
if (IS_ERR(adb_dev_class))
return;
}
class_simple_device_add(adb_dev_class, MKDEV(ADB_MAJOR, 0), NULL, "adb");
class_device_create(adb_dev_class, MKDEV(ADB_MAJOR, 0), NULL, "adb");
}