Merge 4.17-rc3 into usb-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Apr 2018 11:58:51 +0000 (04:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Apr 2018 11:58:51 +0000 (04:58 -0700)
This resolves the merge issue with drivers/usb/core/hcd.c

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
MAINTAINERS
drivers/usb/core/hcd.c
drivers/usb/core/hub.c

diff --cc MAINTAINERS
Simple merge
@@@ -2740,11 -2742,35 +2743,15 @@@ int usb_add_hcd(struct usb_hcd *hcd
        int retval;
        struct usb_device *rhdev;
  
 -      if (IS_ENABLED(CONFIG_USB_PHY) && !hcd->skip_phy_initialization) {
 -              struct usb_phy *phy = usb_get_phy_dev(hcd->self.sysdev, 0);
 -
 -              if (IS_ERR(phy)) {
 -                      retval = PTR_ERR(phy);
 -                      if (retval == -EPROBE_DEFER)
 -                              return retval;
 -              } else {
 -                      retval = usb_phy_init(phy);
 -                      if (retval) {
 -                              usb_put_phy(phy);
 -                              return retval;
 -                      }
 -                      hcd->usb_phy = phy;
 -                      hcd->remove_phy = 1;
 -              }
 -      }
 -
        if (!hcd->skip_phy_initialization && usb_hcd_is_primary_hcd(hcd)) {
-               hcd->phy_roothub = usb_phy_roothub_init(hcd->self.sysdev);
+               hcd->phy_roothub = usb_phy_roothub_alloc(hcd->self.sysdev);
 -              if (IS_ERR(hcd->phy_roothub)) {
 -                      retval = PTR_ERR(hcd->phy_roothub);
 -                      goto err_phy_roothub_alloc;
 -              }
 +              if (IS_ERR(hcd->phy_roothub))
 +                      return PTR_ERR(hcd->phy_roothub);
  
 -                      goto err_phy_roothub_alloc;
+               retval = usb_phy_roothub_init(hcd->phy_roothub);
+               if (retval)
++                      return retval;
                retval = usb_phy_roothub_power_on(hcd->phy_roothub);
                if (retval)
                        goto err_usb_phy_roothub_power_on;
Simple merge