summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFranck Demathieu <fdemathieu@gmail.com>2017-02-27 11:52:46 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-03-06 16:47:10 +0200
commit73561128eb72ca04c3be6e240f162a861bf68a86 (patch)
treeb845a4a56f11cf055e67d05c8ae1c69373d6a434 /drivers/usb/dwc3
parent38355b2a44776c25b0f2ad466e8c51bb805b3032 (diff)
downloadtalos-obmc-linux-73561128eb72ca04c3be6e240f162a861bf68a86.tar.gz
talos-obmc-linux-73561128eb72ca04c3be6e240f162a861bf68a86.zip
usb: dwc3: Fix incorrect type for utmi mode
The utmi mode is unsigned according the dt-bindings. Fix sparse issue (-Wtypesign): drivers/usb/dwc3/dwc3-omap.c:391:50: warning: incorrect type in argument 3 (different signedness) drivers/usb/dwc3/dwc3-omap.c:391:50: expected unsigned int [usertype] *out_value drivers/usb/dwc3/dwc3-omap.c:391:50: got int *<noident> Signed-off-by: Franck Demathieu <fdemathieu@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index 2092e46b1380..4a595777969e 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -392,7 +392,7 @@ static void dwc3_omap_set_utmi_mode(struct dwc3_omap *omap)
{
u32 reg;
struct device_node *node = omap->dev->of_node;
- int utmi_mode = 0;
+ u32 utmi_mode = 0;
reg = dwc3_omap_read_utmi_ctrl(omap);
OpenPOWER on IntegriCloud