From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757145AbcGZQV5 (ORCPT ); Tue, 26 Jul 2016 12:21:57 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33890 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754478AbcGZQVy (ORCPT ); Tue, 26 Jul 2016 12:21:54 -0400 From: Romain Izard To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Felipe Balbi Cc: Greg Kroah-Hartman , Romain Izard Subject: [PATCH v1] usb: gadget: configfs: log function unbinding as information Date: Tue, 26 Jul 2016 18:21:46 +0200 Message-Id: <1469550106-16067-1-git-send-email-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/usb/gadget/configfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 70cf3477f951..11f3a649d9e5 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); } } -- 2.7.4