This patch replaces 0/1 values used in xhci-plat.c
with boolean values for ease of understanding
Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
goto disable_phy;
}
- } else
+ } else {
goto disable_phy;
+ }
return 0;
if (ret)
goto dealloc_usb2_hcd;
- ret = usb_otg_set_host(&pdev->dev, hcd, 1);
+ ret = usb_otg_set_host(&pdev->dev, hcd, true);
if (ret)
goto dealloc_usb2_hcd;
xhci->xhc_state |= XHCI_STATE_REMOVING;
- usb_otg_set_host(&dev->dev, hcd, 0);
-
usb_remove_hcd(xhci->shared_hcd);
usb_phy_shutdown(hcd->usb_phy);
+ usb_otg_set_host(&dev->dev, hcd, false);
+
usb_remove_hcd(hcd);
usb_put_hcd(xhci->shared_hcd);