usb: gadget: configfs: log function unbinding as information
authorRomain Izard <romain.izard.pro@gmail.com>
Tue, 26 Jul 2016 16:21:46 +0000 (18:21 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:08 +0000 (12:13 +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 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>
drivers/usb/gadget/configfs.c

index f9237fe2be0565857a23c637fd7d878d85fe049a..de844d44b998981093bcbe1ff23f6bf69e5e4f66 100644 (file)
@@ -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);
                        }
                }
This page took 0.024778 seconds and 5 git commands to generate.