|
@@ -320,8 +320,7 @@ put_usb3_hcd:
|
|
|
usb_put_hcd(xhci->shared_hcd);
|
|
|
|
|
|
disable_clk:
|
|
|
- if (!IS_ERR(clk))
|
|
|
- clk_disable_unprepare(clk);
|
|
|
+ clk_disable_unprepare(clk);
|
|
|
|
|
|
put_hcd:
|
|
|
usb_put_hcd(hcd);
|
|
@@ -347,8 +346,7 @@ static int xhci_plat_remove(struct platform_device *dev)
|
|
|
usb_remove_hcd(hcd);
|
|
|
usb_put_hcd(xhci->shared_hcd);
|
|
|
|
|
|
- if (!IS_ERR(clk))
|
|
|
- clk_disable_unprepare(clk);
|
|
|
+ clk_disable_unprepare(clk);
|
|
|
usb_put_hcd(hcd);
|
|
|
|
|
|
pm_runtime_set_suspended(&dev->dev);
|