]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: host: lpc32xx: don't unregister phy device
authorVladimir Zapolskiy <vz@mleia.com>
Sat, 17 Oct 2015 19:30:26 +0000 (22:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:53:53 +0000 (19:53 -0700)
There is no need to unregister the I2C device, which serves as a phy
from host code, this should be done in the correspondent phy driver.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-nxp.c

index c0d892c81def915a8ab478231878335cad01524f..cfa94275c52c24d668cde3833e3694162ce52f9f 100644 (file)
@@ -303,7 +303,6 @@ static int ohci_hcd_nxp_remove(struct platform_device *pdev)
        clk_disable_unprepare(usb_otg_clk);
        clk_disable_unprepare(usb_dev_clk);
        clk_disable_unprepare(usb_pll_clk);
-       i2c_unregister_device(isp1301_i2c_client);
        isp1301_i2c_client = NULL;
 
        return 0;