810-USB-bcma-use-simpler-devm_gpiod_get.patch 828 B

123456789101112131415161718192021222324
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Sat, 2 Jan 2016 11:26:28 +0100
  3. Subject: [PATCH] USB: bcma: use simpler devm_gpiod_get
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  8. ---
  9. drivers/usb/host/bcma-hcd.c | 3 +--
  10. 1 file changed, 1 insertion(+), 2 deletions(-)
  11. --- a/drivers/usb/host/bcma-hcd.c
  12. +++ b/drivers/usb/host/bcma-hcd.c
  13. @@ -568,8 +568,7 @@ static int bcma_hcd_probe(struct bcma_de
  14. usb_dev->core = dev;
  15. if (dev->dev.of_node)
  16. - usb_dev->gpio_desc = devm_get_gpiod_from_child(&dev->dev, "vcc",
  17. - &dev->dev.of_node->fwnode);
  18. + usb_dev->gpio_desc = devm_gpiod_get(&dev->dev, "vcc");
  19. if (!IS_ERR_OR_NULL(usb_dev->gpio_desc))
  20. gpiod_direction_output(usb_dev->gpio_desc, 1);