aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/host/ehci-tegra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 568aecc7075b..fafbc819ab18 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -768,7 +768,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
768 goto fail; 768 goto fail;
769 } 769 }
770 770
771#ifdef CONFIG_USB_OTG_UTILS 771#if IS_ENABLED(CONFIG_USB_PHY)
772 if (pdata->operating_mode == TEGRA_USB_OTG) { 772 if (pdata->operating_mode == TEGRA_USB_OTG) {
773 tegra->transceiver = 773 tegra->transceiver =
774 devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); 774 devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
@@ -794,7 +794,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
794 return err; 794 return err;
795 795
796fail: 796fail:
797#ifdef CONFIG_USB_OTG_UTILS 797#if IS_ENABLED(CONFIG_USB_PHY)
798 if (!IS_ERR_OR_NULL(tegra->transceiver)) 798 if (!IS_ERR_OR_NULL(tegra->transceiver))
799 otg_set_host(tegra->transceiver->otg, NULL); 799 otg_set_host(tegra->transceiver->otg, NULL);
800#endif 800#endif
@@ -815,7 +815,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
815 pm_runtime_disable(&pdev->dev); 815 pm_runtime_disable(&pdev->dev);
816 pm_runtime_put_noidle(&pdev->dev); 816 pm_runtime_put_noidle(&pdev->dev);
817 817
818#ifdef CONFIG_USB_OTG_UTILS 818#if IS_ENABLED(CONFIG_USB_PHY)
819 if (!IS_ERR_OR_NULL(tegra->transceiver)) 819 if (!IS_ERR_OR_NULL(tegra->transceiver))
820 otg_set_host(tegra->transceiver->otg, NULL); 820 otg_set_host(tegra->transceiver->otg, NULL);
821#endif 821#endif