diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-cpuimx51.c')
-rw-r--r-- | arch/arm/mach-mx5/board-cpuimx51.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index 6ab002d08a56..125a1961fd8c 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c | |||
@@ -178,6 +178,8 @@ static int initialize_otg_port(struct platform_device *pdev) | |||
178 | void __iomem *usbother_base; | 178 | void __iomem *usbother_base; |
179 | 179 | ||
180 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 180 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); |
181 | if (!usb_base) | ||
182 | return -ENOMEM; | ||
181 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 183 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
182 | 184 | ||
183 | /* Set the PHY clock to 19.2MHz */ | 185 | /* Set the PHY clock to 19.2MHz */ |
@@ -196,6 +198,8 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
196 | void __iomem *usbother_base; | 198 | void __iomem *usbother_base; |
197 | 199 | ||
198 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 200 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); |
201 | if (!usb_base) | ||
202 | return -ENOMEM; | ||
199 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 203 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
200 | 204 | ||
201 | /* The clock for the USBH1 ULPI port will come externally from the PHY. */ | 205 | /* The clock for the USBH1 ULPI port will come externally from the PHY. */ |