summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Jorns <ejo@pengutronix.de>2021-05-17 13:45:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-18 08:32:33 +0200
commitdff43b5288835a05c2e8fac967c9e25166bb18cc (patch)
treefa1c260497370829e3776517a8a91791c5fc3942
parent1fb97c97120377c70a1096a9f8a355d29c11f0d4 (diff)
downloadbarebox-dff43b5288835a05c2e8fac967c9e25166bb18cc.tar.gz
barebox-dff43b5288835a05c2e8fac967c9e25166bb18cc.tar.xz
usb: dwc2: do no print error message with dwc2_warn() macro
dwc2_warn() is intended for printing 'warning' messages and should thus call dev_warn() instead of dev_err(). Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Link: https://lore.barebox.org/20210517114519.28451-1-ejo@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/dwc2/core.h2
1 files changed, 1 insertions, 1 deletions
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)