Commit 820c629a authored by Bjørn Mork's avatar Bjørn Mork Committed by Greg Kroah-Hartman

USB: cdc-wdm: avoid printing odd-looking "cdc-wdm-176" names

usb_register_dev() will change our .minor_base to 0 if
CONFIG_USB_DYNAMIC_MINORS is set.  And it usually is, of
course.

Use dev_name() to print the proper interface name instead
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Acked-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7e3054a0
...@@ -723,8 +723,7 @@ static int wdm_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -723,8 +723,7 @@ static int wdm_probe(struct usb_interface *intf, const struct usb_device_id *id)
if (rv < 0) if (rv < 0)
goto err2; goto err2;
else else
dev_info(&intf->dev, "cdc-wdm%d: USB WDM device\n", dev_info(&intf->dev, "%s: USB WDM device\n", dev_name(intf->usb_dev));
intf->minor - WDM_MINOR_BASE);
out: out:
return rv; return rv;
err2: err2:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment