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:
@ -1204,7 +1204,8 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate)
|
||||
|
||||
alt = usb_altnum_to_altsetting(iface, alternate);
|
||||
if (!alt) {
|
||||
warn("selecting invalid altsetting %d", alternate);
|
||||
dev_warn(&dev->dev, "selecting invalid altsetting %d",
|
||||
alternate);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user