1
0
Fork 0

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>
steinar/wifi_calib_4_9_kernel
Romain Izard 2016-07-26 18:21:46 +02:00 committed by Felipe Balbi
parent 77e012ac86
commit a08f5dbf87
1 changed files with 3 additions and 2 deletions

View 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);
}
}