projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath25: 4.9: fix GPIO compile issues
[openwrt/openwrt.git]
/
target
/
linux
/
ath25
/
patches-4.9
/
108-ar2315_gpio.patch
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 6bb793d98cfa396d7b810406d894ce8d353b9517..cd9d8bcda8504e3de8647fbe5ba661d961516741 100644
(file)
--- 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);
+
+ 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");
+ ret = gpiochip_add(&ar2315_gpio_chip);
+ if (ret) {
+ dev_err(dev, "failed to add gpiochip\n");