Merge tag 'pci-v3.18-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[firefly-linux-kernel-4.4.55.git] / drivers / usb / misc / lvstest.c
index 7d589c156fb1bc6bdb99d31c351deb4b08c0b9f8..62cb8cd08403d8a5290f213b41b7400ace0b9ca9 100644 (file)
@@ -333,13 +333,13 @@ static void lvs_rh_work(struct work_struct *work)
                                        USB_PORT_STAT_CONNECTION) {
                                lvs->present = true;
                                lvs->portnum = i;
-                               if (hcd->phy)
-                                       usb_phy_notify_connect(hcd->phy,
+                               if (hcd->usb_phy)
+                                       usb_phy_notify_connect(hcd->usb_phy,
                                                        USB_SPEED_SUPER);
                        } else {
                                lvs->present = false;
-                               if (hcd->phy)
-                                       usb_phy_notify_disconnect(hcd->phy,
+                               if (hcd->usb_phy)
+                                       usb_phy_notify_disconnect(hcd->usb_phy,
                                                        USB_SPEED_SUPER);
                        }
                        break;