usb: gadget: configfs: log function unbinding as debug
authorRomain Izard <romain.izard.pro@gmail.com>
Mon, 29 Aug 2016 09:22:29 +0000 (12:22 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 31 Aug 2016 07:06:05 +0000 (10:06 +0300)
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 debug, not as an error.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/configfs.c

index de844d4..3984787 100644 (file)
@@ -1211,7 +1211,7 @@ static void purge_configs_funcs(struct gadget_info *gi)
 
                        list_move_tail(&f->list, &cfg->func_list);
                        if (f->unbind) {
-                               dev_info(&gi->cdev.gadget->dev,
+                               dev_dbg(&gi->cdev.gadget->dev,
                                         "unbind function '%s'/%p\n",
                                         f->name, f);
                                f->unbind(c, f);