mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
bcm53xx: fix USB patch breaking 4.4 compilation
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48112
This commit is contained in:
parent
ccb7d794ff
commit
e17c1e45ad
@ -18,7 +18,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
|
|||||||
if (dev->dev.of_node)
|
if (dev->dev.of_node)
|
||||||
- usb_dev->gpio_desc = devm_get_gpiod_from_child(&dev->dev, "vcc",
|
- usb_dev->gpio_desc = devm_get_gpiod_from_child(&dev->dev, "vcc",
|
||||||
- &dev->dev.of_node->fwnode);
|
- &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))
|
if (!IS_ERR_OR_NULL(usb_dev->gpio_desc))
|
||||||
gpiod_direction_output(usb_dev->gpio_desc, 1);
|
gpiod_direction_output(usb_dev->gpio_desc, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user