summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2014-05-08 07:27:26 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 07:29:23 +0200
commit4d707a915fa64cf76f0e388376de3db70d91905d (patch)
treea6491f9792267bd7e91a9d53e894d69389a8c52f /drivers
parent1c5b70c0687ea69d9980f0e73fd78c13994424b5 (diff)
downloadlinux-3.10-4d707a915fa64cf76f0e388376de3db70d91905d.tar.gz
linux-3.10-4d707a915fa64cf76f0e388376de3db70d91905d.tar.bz2
linux-3.10-4d707a915fa64cf76f0e388376de3db70d91905d.zip
Revert "phy: exynos4212-usb: Use refcount to power device PHY for HSIC0"
This reverts commit 16b990c41a9f1e31f4c51f66052a1c648a3c0b2e. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I49f69bf27d8226e05a3fb48c70b15f21e3685345
Diffstat (limited to 'drivers')
-rw-r--r--drivers/phy/phy-exynos4212-usb.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/phy/phy-exynos4212-usb.c b/drivers/phy/phy-exynos4212-usb.c
index 6d426a4e92f..c6af66d489d 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);
}