You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
device create: usb: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -1162,9 +1162,9 @@ int mon_bin_add(struct mon_bus *mbus, const struct usb_bus *ubus)
|
||||
if (minor >= MON_BIN_MAX_MINOR)
|
||||
return 0;
|
||||
|
||||
dev = device_create_drvdata(mon_bin_class, ubus? ubus->controller: NULL,
|
||||
MKDEV(MAJOR(mon_bin_dev0), minor), NULL,
|
||||
"usbmon%d", minor);
|
||||
dev = device_create(mon_bin_class, ubus ? ubus->controller : NULL,
|
||||
MKDEV(MAJOR(mon_bin_dev0), minor), NULL,
|
||||
"usbmon%d", minor);
|
||||
if (IS_ERR(dev))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user