summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2013-10-15 15:41:41 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:57 +0900
commit60dffa8372c30a78ba046304d6d37ab96576dd4a (patch)
treee9664caa79d8f22767f7d358fd4ec53914206a05 /drivers/phy
parent6af3df45bdf609baa4c69121abd0f5737d4a2960 (diff)
downloadlinux-3.10-60dffa8372c30a78ba046304d6d37ab96576dd4a.tar.gz
linux-3.10-60dffa8372c30a78ba046304d6d37ab96576dd4a.tar.bz2
linux-3.10-60dffa8372c30a78ba046304d6d37ab96576dd4a.zip
phy: exynos-usb: Remove ref counting for additional reset for Exynos4212
Reference counting in this case is not necessary. Signed-off-by: Kamil Debski <k.debski@samsung.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-exynos4212-usb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/phy/phy-exynos4212-usb.c b/drivers/phy/phy-exynos4212-usb.c
index b7de33f6324..a9fa15d9153 100644
--- a/drivers/phy/phy-exynos4212-usb.c
+++ b/drivers/phy/phy-exynos4212-usb.c
@@ -262,9 +262,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);
}
@@ -294,9 +291,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);
}