mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Joshua Thompson <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
d78b03683a
commit
68db2bc98c
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue