aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/ehci.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2010-12-13 07:47:05 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2010-12-14 03:55:53 -0500
commit28a4f908acb342350b9ecbfcdf0a999cb83e05aa (patch)
treece0bea69a22fe4731a094a443d6ea2660a27c82b /arch/arm/plat-mxc/ehci.c
parentbb477de2efc560e55c4a830329273661f3664bc8 (diff)
ARM: mx5: check for error in ioremap
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/ehci.c')
-rw-r--r--arch/arm/plat-mxc/ehci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/ehci.c b/arch/arm/plat-mxc/ehci.c
index c1a7146dad96..d59f5feb3c54 100644
--- a/arch/arm/plat-mxc/ehci.c
+++ b/arch/arm/plat-mxc/ehci.c
@@ -254,6 +254,10 @@ int mxc_initialize_usb_hw(int port, unsigned int flags)
254 int ret = 0; 254 int ret = 0;
255 255
256 usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); 256 usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K);
257 if (!usb_base) {
258 printk(KERN_ERR "%s(): ioremap failed\n", __func__);
259 return -ENOMEM;
260 }
257 261
258 switch (port) { 262 switch (port) {
259 case 0: /* OTG port */ 263 case 0: /* OTG port */