From 60dffa8372c30a78ba046304d6d37ab96576dd4a Mon Sep 17 00:00:00 2001 From: Kamil Debski Date: Tue, 15 Oct 2013 15:41:41 +0200 Subject: [PATCH] phy: exynos-usb: Remove ref counting for additional reset for Exynos4212 Reference counting in this case is not necessary. Signed-off-by: Kamil Debski --- drivers/phy/phy-exynos4212-usb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/phy/phy-exynos4212-usb.c b/drivers/phy/phy-exynos4212-usb.c index b7de33f..a9fa15d 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); } -- 2.7.4