From: Lothar Waßmann Date: Wed, 31 Jul 2013 14:21:14 +0000 (+0200) Subject: usb: chipidea: ci_hdrc_imx: remove an unsolicited module_put() call from ci_hdrc_imx_... X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=22e9ccd58c03d1a5ed341fe5fa0e386f4c6ca5d6;p=karo-tx-linux.git usb: chipidea: ci_hdrc_imx: remove an unsolicited module_put() call from ci_hdrc_imx_remove() This prevents the USB PHY refcount to be decremented below zero upon unloading the ci-hdrc-imx module. Signed-off-by: Lothar Waßmann Acked-by: Peter Chen Signed-off-by: Alexander Shishkin --- diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 1e8a4b9effbd..8aa528684e1d 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -208,10 +208,8 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev) if (data->reg_vbus) regulator_disable(data->reg_vbus); - if (data->phy) { + if (data->phy) usb_phy_shutdown(data->phy); - module_put(data->phy->dev->driver->owner); - } clk_disable_unprepare(data->clk);