summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/configfs.c
diff options
context:
space:
mode:
authorRomain Izard <romain.izard.pro@gmail.com>2016-07-26 18:21:46 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-25 11:13:08 +0200
commita08f5dbf877a4594816dbb499c4af18fce936110 (patch)
tree0eb6a2ea5469ca631b72165729c006bb660a9a6b /drivers/usb/gadget/configfs.c
parentusb: phy: generic: remove the vbus dependency (diff)
downloadlinux-a08f5dbf877a4594816dbb499c4af18fce936110.tar.xz
linux-a08f5dbf877a4594816dbb499c4af18fce936110.zip
usb: gadget: configfs: log function unbinding as information
Disabling USB gadget functions configured through configfs is something that can happen in normal use cases. Keep the existing log for this type of event, but only as information, not as an error. Signed-off-by: Romain Izard <romain.izard.pro@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/configfs.c')
-rw-r--r--drivers/usb/gadget/configfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index f9237fe2be05..de844d44b998 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -1211,8 +1211,9 @@ static void purge_configs_funcs(struct gadget_info *gi)
list_move_tail(&f->list, &cfg->func_list);
if (f->unbind) {
- dev_err(&gi->cdev.gadget->dev, "unbind function"
- " '%s'/%p\n", f->name, f);
+ dev_info(&gi->cdev.gadget->dev,
+ "unbind function '%s'/%p\n",
+ f->name, f);
f->unbind(c, f);
}
}