Commit 079d440e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: file.c: remove dbg() usage

dbg() was a very old USB-specific macro that should no longer
be used. This patch removes it from being used in the driver
and uses dev_dbg() instead.

CC: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f306309
...@@ -183,7 +183,7 @@ int usb_register_dev(struct usb_interface *intf, ...@@ -183,7 +183,7 @@ int usb_register_dev(struct usb_interface *intf,
if (retval) if (retval)
return retval; return retval;
dev_dbg(&intf->dev, "looking for a minor, starting at %d", minor_base); dev_dbg(&intf->dev, "looking for a minor, starting at %d\n", minor_base);
down_write(&minor_rwsem); down_write(&minor_rwsem);
for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) { for (minor = minor_base; minor < MAX_USB_MINORS; ++minor) {
...@@ -239,7 +239,7 @@ void usb_deregister_dev(struct usb_interface *intf, ...@@ -239,7 +239,7 @@ void usb_deregister_dev(struct usb_interface *intf,
if (intf->minor == -1) if (intf->minor == -1)
return; return;
dbg ("removing %d minor", intf->minor); dev_dbg(&intf->dev, "removing %d minor\n", intf->minor);
down_write(&minor_rwsem); down_write(&minor_rwsem);
usb_minors[intf->minor] = NULL; usb_minors[intf->minor] = NULL;
......
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