From: Vladimir Zapolskiy Date: Sat, 17 Oct 2015 19:30:26 +0000 (+0300) Subject: usb: host: lpc32xx: don't unregister phy device X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=164f0aa87232b85c17181922a28c3f410ea9a32b;p=deliverable%2Flinux.git usb: host: lpc32xx: don't unregister phy device 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index c0d892c81def..cfa94275c52c 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -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;