summaryrefslogtreecommitdiffstats
path: root/drivers/usb
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
parent38355b2a44776c25b0f2ad466e8c51bb805b3032 (diff)
downloadop-kernel-dev-73561128eb72ca04c3be6e240f162a861bf68a86.zip
op-kernel-dev-73561128eb72ca04c3be6e240f162a861bf68a86.tar.gz
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')
-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 2092e46..4a59577 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