OSDN Git Service

usb: otg: Convert all users to pass struct usb_otg for OTG functions
[uclinux-h8/linux.git] / drivers / usb / host / ehci-tegra.c
index 701a0bf..3de48a2 100644 (file)
@@ -735,7 +735,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
        if (pdata->operating_mode == TEGRA_USB_OTG) {
                tegra->transceiver = usb_get_transceiver();
                if (tegra->transceiver)
-                       otg_set_host(tegra->transceiver, &hcd->self);
+                       otg_set_host(tegra->transceiver->otg, &hcd->self);
        }
 #endif
 
@@ -750,7 +750,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
 fail:
 #ifdef CONFIG_USB_OTG_UTILS
        if (tegra->transceiver) {
-               otg_set_host(tegra->transceiver, NULL);
+               otg_set_host(tegra->transceiver->otg, NULL);
                usb_put_transceiver(tegra->transceiver);
        }
 #endif
@@ -808,7 +808,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
 
 #ifdef CONFIG_USB_OTG_UTILS
        if (tegra->transceiver) {
-               otg_set_host(tegra->transceiver, NULL);
+               otg_set_host(tegra->transceiver->otg, NULL);
                usb_put_transceiver(tegra->transceiver);
        }
 #endif