提交 769d92c4 编写于 作者: L Lothar Waßmann 提交者: 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: NLothar Waßmann <LW@KARO-electronics.de>
Acked-by: NPeter Chen <peter.chen@freescale.com>
Signed-off-by: NAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a0cfdc6b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册