Commit 769d92c4 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Greg Kroah-Hartman

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
Acked-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a0cfdc6b
...@@ -208,10 +208,8 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev) ...@@ -208,10 +208,8 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev)
if (data->reg_vbus) if (data->reg_vbus)
regulator_disable(data->reg_vbus); regulator_disable(data->reg_vbus);
if (data->phy) { if (data->phy)
usb_phy_shutdown(data->phy); usb_phy_shutdown(data->phy);
module_put(data->phy->dev->driver->owner);
}
clk_disable_unprepare(data->clk); clk_disable_unprepare(data->clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment