diff options
author | Kamil Debski <k.debski@samsung.com> | 2013-10-01 15:48:13 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:44:52 +0900 |
commit | dd74a535d1e8e6146b14fb241104764c574d9c2e (patch) | |
tree | 40a862c2309a389778b7ff2d6014cadfd1282ad1 /drivers/phy | |
parent | a5f14de4805f452842c63118186d43f12ef9a184 (diff) | |
download | linux-3.10-dd74a535d1e8e6146b14fb241104764c574d9c2e.tar.gz linux-3.10-dd74a535d1e8e6146b14fb241104764c574d9c2e.tar.bz2 linux-3.10-dd74a535d1e8e6146b14fb241104764c574d9c2e.zip |
phy: exynos-usb: Fix referenct counting
This patch fixes the reference counting when powerin on/off the phy.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/phy-exynos4210-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-exynos4210-usb.c b/drivers/phy/phy-exynos4210-usb.c index 4b849e7abb0..d75a5546327 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; |