Revert "phy: exynos-usb: Fix referenct counting"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 8 May 2014 05:28:14 +0000 (07:28 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:48 +0000 (11:47 +0900)
This reverts commit 58ae84cefb54046335d9581f3d96e8a5b947a08b.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3adfabef0633bdb8542940a506976afd12856f21

drivers/phy/phy-exynos4210-usb.c

index d75a554..4b849e7 100644 (file)
@@ -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;