]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/usb/host/ehci-fsl.c
usb: otg: Convert all users to pass struct usb_otg for OTG functions
[mirror_ubuntu-artful-kernel.git] / drivers / usb / host / ehci-fsl.c
index 481effdc7f54beab837dbeda612f0764c1f9fd04..4786ba5f2e6c77317b4685dee816c6b8e24f573a 100644 (file)
@@ -147,7 +147,7 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver,
                        hcd, ehci, ehci->transceiver);
 
                if (ehci->transceiver) {
-                       retval = otg_set_host(ehci->transceiver,
+                       retval = otg_set_host(ehci->transceiver->otg,
                                              &ehci_to_hcd(ehci)->self);
                        if (retval) {
                                if (ehci->transceiver)
@@ -194,7 +194,7 @@ static void usb_hcd_fsl_remove(struct usb_hcd *hcd,
        struct ehci_hcd *ehci = hcd_to_ehci(hcd);
 
        if (ehci->transceiver) {
-               otg_set_host(ehci->transceiver, NULL);
+               otg_set_host(ehci->transceiver->otg, NULL);
                put_device(ehci->transceiver->dev);
        }