From: Tony Jones Date: Tue, 25 Sep 2007 00:03:03 +0000 (+0200) Subject: adb: Convert from class_device to device X-Git-Tag: v2.6.25-rc1~1243^2~174 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=68db2bc98cc1594a1cc487755aff4340fd4f1611;p=linux-2.6-omap-h63xx.git adb: Convert from class_device to device struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones Cc: Joshua Thompson Cc: Benjamin Herrenschmidt Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 5c742a52608..b7adde4324e 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c @@ -875,5 +875,5 @@ 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"); }