aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-01-02 10:49:46 +0000
committerRafał Miłecki <zajec5@gmail.com>2016-01-02 10:49:46 +0000
commitef53dc754f613248898f9ee7fc210fd1241e77b0 (patch)
tree1bd76ea2c0822d7de0a69a699b841d24223d02d2 /target/linux
parent7bede46e587da51765a9d0a435f8cc14d3082d7c (diff)
downloadupstream-ef53dc754f613248898f9ee7fc210fd1241e77b0.tar.gz
upstream-ef53dc754f613248898f9ee7fc210fd1241e77b0.tar.bz2
upstream-ef53dc754f613248898f9ee7fc210fd1241e77b0.zip
bcm53xx: switch to simpler devm_gpiod_get in USB driver
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48062
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/bcm53xx/patches-4.1/810-USB-bcma-use-simpler-devm_gpiod_get.patch24
-rw-r--r--target/linux/bcm53xx/patches-4.4/810-USB-bcma-use-simpler-devm_gpiod_get.patch24
2 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-4.1/810-USB-bcma-use-simpler-devm_gpiod_get.patch b/target/linux/bcm53xx/patches-4.1/810-USB-bcma-use-simpler-devm_gpiod_get.patch
new file mode 100644
index 0000000000..32a5113845
--- /dev/null
+++ b/target/linux/bcm53xx/patches-4.1/810-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
+@@ -568,8 +568,7 @@ static int bcma_hcd_probe(struct bcma_device *dev)
+ 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);
+
diff --git a/target/linux/bcm53xx/patches-4.4/810-USB-bcma-use-simpler-devm_gpiod_get.patch b/target/linux/bcm53xx/patches-4.4/810-USB-bcma-use-simpler-devm_gpiod_get.patch
new file mode 100644
index 0000000000..32a5113845
--- /dev/null
+++ b/target/linux/bcm53xx/patches-4.4/810-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
+@@ -568,8 +568,7 @@ static int bcma_hcd_probe(struct bcma_device *dev)
+ 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);
+