From: Anurag Kumar Vulisha Date: Sat, 30 Mar 2019 10:23:17 +0000 (+0000) Subject: usb: host: xhci: Replace 0/1 values with boolean X-Git-Tag: xlnx_rebase_v4.19_2019.1~80 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/zynq/linux.git/commitdiff_plain/35a85ebf81e20f4389cc6fa3a30776a3a53c602f usb: host: xhci: Replace 0/1 values with boolean This patch replaces 0/1 values used in xhci-plat.c with boolean values for ease of understanding Signed-off-by: Anurag Kumar Vulisha Signed-off-by: Michal Simek --- diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 8c4aabe2cd25..1e5cf019cd4d 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -168,8 +168,9 @@ static int usb_otg_set_host(struct device *dev, struct usb_hcd *hcd, bool yes) goto disable_phy; } - } else + } else { goto disable_phy; + } return 0; @@ -355,7 +356,7 @@ static int xhci_plat_probe(struct platform_device *pdev) 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; @@ -405,11 +406,11 @@ static int xhci_plat_remove(struct platform_device *dev) 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);