bcm53xx: fix USB patch breaking 4.4 compilation
authorRafał Miłecki <zajec5@gmail.com>
Mon, 4 Jan 2016 12:28:46 +0000 (12:28 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 4 Jan 2016 12:28:46 +0000 (12:28 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48112

target/linux/bcm53xx/patches-4.4/810-USB-bcma-use-simpler-devm_gpiod_get.patch

index 32a51138451013e0dabc11441791026792b4899c..a2c9b12051aaed7ad75e007698fbfde5c4b91ae5 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
        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");
++              usb_dev->gpio_desc = devm_gpiod_get(&dev->dev, "vcc", 0);
        if (!IS_ERR_OR_NULL(usb_dev->gpio_desc))
                gpiod_direction_output(usb_dev->gpio_desc, 1);