summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Wang <ran.wang_1@nxp.com>2017-12-07 08:48:06 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-12-12 07:32:43 (GMT)
commit4256aae889793e726477a4b735eb59458849a230 (patch)
tree981d8aa1d8c3f261deb9d7d10bb443e302fbc59b
parent309862b660e2ec03eae0c22eeef5e058a9cd38be (diff)
downloadlinux-4256aae889793e726477a4b735eb59458849a230.tar.xz
usb: ehci-fsl: Fix compilation error when enable EHCI for ls1012a.
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
-rw-r--r--drivers/usb/host/ehci-fsl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 43650d1..d24b92d 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -36,6 +36,7 @@
#include <linux/platform_device.h>
#include <linux/fsl_devices.h>
#include <linux/of_platform.h>
+#include <linux/io.h>
#ifdef CONFIG_PPC
#include <asm/fsl_pm.h>
@@ -312,7 +313,7 @@ static bool usb_phy_clk_valid(struct usb_hcd *hcd)
void __iomem *non_ehci = hcd->regs;
bool ret = true;
- if (!(in_be32(non_ehci + FSL_SOC_USB_CTRL) & PHY_CLK_VALID))
+ if (!(ioread32be(non_ehci + FSL_SOC_USB_CTRL) & PHY_CLK_VALID))
ret = false;
return ret;