[PATCH] usb: dwc2: do no print error message with dwc2_warn() macro

Enrico Jorns ejo at pengutronix.de
Mon May 17 04:45:19 PDT 2021


dwc2_warn() is intended for printing 'warning' messages and should thus
call dev_warn() instead of dev_err().

Signed-off-by: Enrico Jorns <ejo at pengutronix.de>
---
 drivers/usb/dwc2/core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index fa9d6ae954..c49672c85a 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -500,7 +500,7 @@ struct dwc2 {
 #define gadget_to_dwc2(ptr) container_of(ptr, struct dwc2, gadget)
 
 #define dwc2_err(d, arg...) dev_err((d)->dev, ## arg)
-#define dwc2_warn(d, arg...) dev_err((d)->dev, ## arg)
+#define dwc2_warn(d, arg...) dev_warn((d)->dev, ## arg)
 #define dwc2_info(d, arg...) dev_info((d)->dev, ## arg)
 #define dwc2_dbg(d, arg...) dev_dbg((d)->dev, ## arg)
 #define dwc2_vdbg(d, arg...) dev_vdbg((d)->dev, ## arg)
-- 
2.29.2




More information about the barebox mailing list