diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-01-02 11:15:28 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-01-02 11:15:28 +0000 |
commit | c72f3c757450e2d5ec8a9059ca62419376fed2a2 (patch) | |
tree | 017480509578c8fa4309dfc4fc192d618c813179 /target | |
parent | 27f7e08c472d9a698272d7d2d6af43bcf47b3dbf (diff) | |
download | upstream-c72f3c757450e2d5ec8a9059ca62419376fed2a2.tar.gz upstream-c72f3c757450e2d5ec8a9059ca62419376fed2a2.tar.bz2 upstream-c72f3c757450e2d5ec8a9059ca62419376fed2a2.zip |
bcm53xx: switch to simpler devm_gpiod_get in USB driver
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48062
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48063 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/bcm53xx/patches-3.18/813-USB-bcma-use-simpler-devm_gpiod_get.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.18/813-USB-bcma-use-simpler-devm_gpiod_get.patch b/target/linux/bcm53xx/patches-3.18/813-USB-bcma-use-simpler-devm_gpiod_get.patch new file mode 100644 index 0000000000..ebad06630e --- /dev/null +++ b/target/linux/bcm53xx/patches-3.18/813-USB-bcma-use-simpler-devm_gpiod_get.patch @@ -0,0 +1,24 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> +Date: Sat, 2 Jan 2016 11:26:28 +0100 +Subject: [PATCH] USB: bcma: use simpler devm_gpiod_get +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Rafał Miłecki <zajec5@gmail.com> +--- + drivers/usb/host/bcma-hcd.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/drivers/usb/host/bcma-hcd.c ++++ b/drivers/usb/host/bcma-hcd.c +@@ -562,8 +562,7 @@ static int bcma_hcd_probe(struct bcma_de + usb_dev->core = dev; + + 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 (!IS_ERR_OR_NULL(usb_dev->gpio_desc)) + gpiod_direction_output(usb_dev->gpio_desc, 1); + |