usb: dwc_otg: Fix pointer-to-int-cast build warning 81/236181/2
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 15 Jun 2020 08:30:12 +0000 (17:30 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 15 Jun 2020 10:43:40 +0000 (19:43 +0900)
Fix pointer to int cast build warning.
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c:486:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     (int)dwc_otg_hcd->fiq_state->mphi_regs.base);

Change-Id: Ic495d320dbf41aaeeb77ed303fce8cc4cc121c67
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c

index 7714652..1cad33b 100644 (file)
@@ -482,8 +482,8 @@ static void hcd_init_fiq(void *cookie)
                        otg_dev->os_dep.mphi_base + 0x1f0;
                dwc_otg_hcd->fiq_state->mphi_regs.swirq_clr =
                        otg_dev->os_dep.mphi_base + 0x1f4;
-               DWC_WARN("Fake MPHI regs_base at 0x%08x",
-                        (int)dwc_otg_hcd->fiq_state->mphi_regs.base);
+               DWC_WARN("Fake MPHI regs_base at 0x%px",
+                        dwc_otg_hcd->fiq_state->mphi_regs.base);
        } else {
                dwc_otg_hcd->fiq_state->mphi_regs.ctrl =
                        otg_dev->os_dep.mphi_base + 0x4c;