bcm53xx: fix bcma-hcd compilation in kernel 4.4
authorRafał Miłecki <zajec5@gmail.com>
Mon, 1 Feb 2016 12:54:17 +0000 (12:54 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 1 Feb 2016 12:54:17 +0000 (12:54 +0000)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48607

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

index fd2e38a093064fd04cf211164982bb52b96e15f3..d8647a8e1550f6b9c10ff771dc9d3ee2db4649b4 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
        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(&dev->dev, "vcc", 0);
++              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);