From: Marek Szyprowski Date: Thu, 8 May 2014 05:27:26 +0000 (+0200) Subject: Revert "phy: exynos4212-usb: Use refcount to power device PHY for HSIC0" X-Git-Tag: submit/tizen/20141121.110247~2384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7e2eb9d4f133e8eb0aff9ca95bcf2b59315ed41;p=platform%2Fkernel%2Flinux-3.10.git Revert "phy: exynos4212-usb: Use refcount to power device PHY for HSIC0" This reverts commit 16b990c41a9f1e31f4c51f66052a1c648a3c0b2e. Signed-off-by: Marek Szyprowski Change-Id: I49f69bf27d8226e05a3fb48c70b15f21e3685345 --- diff --git a/drivers/phy/phy-exynos4212-usb.c b/drivers/phy/phy-exynos4212-usb.c index 6d426a4..c6af66d 100644 --- a/drivers/phy/phy-exynos4212-usb.c +++ b/drivers/phy/phy-exynos4212-usb.c @@ -263,11 +263,6 @@ static int exynos4212_power_on(struct uphy_instance *inst) if (inst->cfg->id == EXYNOS4212_HSIC0) { struct uphy_instance *device = &drv->uphy_instances[EXYNOS4212_DEVICE]; - - device->ref_cnt++; - if (device->ref_cnt > 1) - return 0; - exynos4212_phy_pwr(device, 1); exynos4212_isol(device, 0); } @@ -297,11 +292,6 @@ static int exynos4212_power_off(struct uphy_instance *inst) if (inst->cfg->id == EXYNOS4212_HSIC0) { struct uphy_instance *device = &drv->uphy_instances[EXYNOS4212_DEVICE]; - - device->ref_cnt--; - if (device->ref_cnt > 0) - return 0; - exynos4212_phy_pwr(device, 0); exynos4212_isol(device, 1); }