]> git.kernelconcepts.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, 14 Aug 2013 09:43:59 +0000 (12:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:34:16 +0000 (12:34 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c

index a9a3bcf99dbfabf3ff6e26cfbbbfeb4dea67bd07..005ad5f11b69321377d906f17c1ab0086f97d290 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);