Change-Id: Ieb62e64bfd9ff925740b02197cdbe8b0d0928899
Signed-off-by: Daehwan Jung <dh10.jung@samsung.com>
u32 reg;
base = ioremap(0x11860000, 0x100000);
+ if(!base) {
+ dev_err(phy_drd->dev, "[%s] Unable to map I/O memory\n",
+ __func__);
+ return;
+ }
reg = readl(base + EXYNOS_USBDEV_PHY_CONTROL);
dev_info(phy_drd->dev, "[%s] ++USB DEVCTRL reg 0x%x \n",
reg = readl(base + EXYNOS_USBDEV_PHY_CONTROL);
dev_info(phy_drd->dev, "[%s] --USB DEVCTRL reg 0x%x \n",
__func__, reg);
+ iounmap(base);
}
static void exynos_usbdrd_pipe3_phy_isol(struct phy_usb_instance *inst,