bcm53xx: support SPI-NOR on dual flash devices
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 810-USB-bcma-use-simpler-devm_gpiod_get.patch
index 32a51138451013e0dabc11441791026792b4899c..3779fabea275f90c27e4c2de4e81d4f6f22fe4dd 100644 (file)
@@ -12,13 +12,13 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 
 --- a/drivers/usb/host/bcma-hcd.c
 +++ b/drivers/usb/host/bcma-hcd.c
-@@ -568,8 +568,7 @@ static int bcma_hcd_probe(struct bcma_device *dev)
-       usb_dev->core = dev;
+@@ -519,8 +519,7 @@ static int bcma_hcd_probe(struct bcma_de
+       usb_dev->core = core;
  
-       if (dev->dev.of_node)
--              usb_dev->gpio_desc = devm_get_gpiod_from_child(&dev->dev, "vcc",
--                                                             &dev->dev.of_node->fwnode);
-+              usb_dev->gpio_desc = devm_gpiod_get(&dev->dev, "vcc");
+       if (core->dev.of_node)
+-              usb_dev->gpio_desc = devm_get_gpiod_from_child(&core->dev, "vcc",
+-                                                             &core->dev.of_node->fwnode);
++              usb_dev->gpio_desc = devm_gpiod_get(&core->dev, "vcc", 0);
        if (!IS_ERR_OR_NULL(usb_dev->gpio_desc))
                gpiod_direction_output(usb_dev->gpio_desc, 1);