]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: chipidea: ci_hdrc_imx: remove an unsolicited module_put() call from ci_hdrc_imx_...
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 31 Jul 2013 14:21:14 +0000 (16:21 +0200)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:47 +0000 (09:54 +0800)
This prevents the USB PHY refcount to be decremented below zero upon
unloading the ci-hdrc-imx module.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/usb/chipidea/ci_hdrc_imx.c

index 1e8a4b9effbddd9523ba5c131a5e1b55d5662331..8aa528684e1d91c0e06855c73bb4eef225ee9ab5 100644 (file)
@@ -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);