[source] ath25: 4.9: fix GPIO compile issues

LEDE Commits lede-commits at lists.infradead.org
Wed Jun 7 03:25:33 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/0827a0b4f1e598943302346f2fb70f9a3ff1f747

commit 0827a0b4f1e598943302346f2fb70f9a3ff1f747
Author: Sergey Ryazanov <ryazanov.s.a at gmail.com>
AuthorDate: Wed Jun 7 01:49:36 2017 +0300

    ath25: 4.9: fix GPIO compile issues
    
    Consider renaming the dev field to parent in the upstream.
    
    Signed-off-by: Sergey Ryazanov <ryazanov.s.a at gmail.com>
---
 target/linux/ath25/patches-4.9/107-ar5312_gpio.patch | 2 +-
 target/linux/ath25/patches-4.9/108-ar2315_gpio.patch | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch
index f4426b5..ac729ee 100644
--- a/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch
+++ b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch
@@ -177,7 +177,7 @@
 +	if (IS_ERR(ar5312_mem))
 +		return PTR_ERR(ar5312_mem);
 +
-+	ar5312_gpio_chip.dev = dev;
++	ar5312_gpio_chip.parent = dev;
 +	ret = gpiochip_add(&ar5312_gpio_chip);
 +	if (ret) {
 +		dev_err(dev, "failed to add gpiochip\n");
diff --git a/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch
index 6bb793d..cd9d8bc 100644
--- a/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch
+++ b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch
@@ -310,7 +310,7 @@
 +	if (IS_ERR(ar2315_mem))
 +		return PTR_ERR(ar2315_mem);
 +
-+	ar2315_gpio_chip.dev = dev;
++	ar2315_gpio_chip.parent = dev;
 +	ret = gpiochip_add(&ar2315_gpio_chip);
 +	if (ret) {
 +		dev_err(dev, "failed to add gpiochip\n");



More information about the lede-commits mailing list