Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a08f5dbf authored by Romain Izard's avatar Romain Izard Committed by Felipe Balbi
Browse files

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: default avatarRomain Izard <romain.izard.pro@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 77e012ac
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
			}
		}