USB: remove warn() macro from usb drivers
USB should not be having it's own printk macros, so remove warn() and use the system-wide standard of dev_warn() wherever possible. In the few places that will not work out, use a basic printk(). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -413,7 +413,8 @@ static void driver_disconnect(struct usb_interface *intf)
|
||||
if (likely(ifnum < 8*sizeof(ps->ifclaimed)))
|
||||
clear_bit(ifnum, &ps->ifclaimed);
|
||||
else
|
||||
warn("interface number %u out of range", ifnum);
|
||||
dev_warn(&intf->dev, "interface number %u out of range\n",
|
||||
ifnum);
|
||||
|
||||
usb_set_intfdata(intf, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user