Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tonyj@suse.de>
Cc: Joshua Thompson <funaho@jurai.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Tony Jones and committed by
Greg Kroah-Hartman
68db2bc9 d78b0368

+1 -1
+1 -1
drivers/macintosh/adb.c
··· 875 875 adb_dev_class = class_create(THIS_MODULE, "adb"); 876 876 if (IS_ERR(adb_dev_class)) 877 877 return; 878 - class_device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), NULL, "adb"); 878 + device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), "adb"); 879 879 }