summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2014-05-08 05:28:14 (GMT)
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 05:29:25 (GMT)
commit5c1d16438a259381a917c967af91e29e6da87804 (patch)
treef79ce09831423fab25f7fcb3340242a6f070402d
parent2debd6b16422381bf9f4ca0ed54f100e60b22f11 (diff)
downloadlinux-3.10-5c1d16438a259381a917c967af91e29e6da87804.zip
linux-3.10-5c1d16438a259381a917c967af91e29e6da87804.tar.gz
linux-3.10-5c1d16438a259381a917c967af91e29e6da87804.tar.bz2
Revert "phy: exynos-usb: Fix referenct counting"
This reverts commit 58ae84cefb54046335d9581f3d96e8a5b947a08b. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I3adfabef0633bdb8542940a506976afd12856f21
-rw-r--r--drivers/phy/phy-exynos4210-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-exynos4210-usb.c b/drivers/phy/phy-exynos4210-usb.c
index d75a554..4b849e7 100644
--- a/drivers/phy/phy-exynos4210-usb.c
+++ b/drivers/phy/phy-exynos4210-usb.c
@@ -250,7 +250,7 @@ static int exynos4210_power_off(struct uphy_instance *inst)
}
inst->state = STATE_OFF;
- inst->ref_cnt--;
+ inst->ref_cnt++;
if (inst->ref_cnt > 0)
return 0;