mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
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@gmail.com>
This commit is contained in:
parent
64083848e2
commit
0827a0b4f1
@ -177,7 +177,7 @@
|
|||||||
+ if (IS_ERR(ar5312_mem))
|
+ if (IS_ERR(ar5312_mem))
|
||||||
+ return PTR_ERR(ar5312_mem);
|
+ return PTR_ERR(ar5312_mem);
|
||||||
+
|
+
|
||||||
+ ar5312_gpio_chip.dev = dev;
|
+ ar5312_gpio_chip.parent = dev;
|
||||||
+ ret = gpiochip_add(&ar5312_gpio_chip);
|
+ ret = gpiochip_add(&ar5312_gpio_chip);
|
||||||
+ if (ret) {
|
+ if (ret) {
|
||||||
+ dev_err(dev, "failed to add gpiochip\n");
|
+ dev_err(dev, "failed to add gpiochip\n");
|
||||||
|
@ -310,7 +310,7 @@
|
|||||||
+ if (IS_ERR(ar2315_mem))
|
+ if (IS_ERR(ar2315_mem))
|
||||||
+ return PTR_ERR(ar2315_mem);
|
+ return PTR_ERR(ar2315_mem);
|
||||||
+
|
+
|
||||||
+ ar2315_gpio_chip.dev = dev;
|
+ ar2315_gpio_chip.parent = dev;
|
||||||
+ ret = gpiochip_add(&ar2315_gpio_chip);
|
+ ret = gpiochip_add(&ar2315_gpio_chip);
|
||||||
+ if (ret) {
|
+ if (ret) {
|
||||||
+ dev_err(dev, "failed to add gpiochip\n");
|
+ dev_err(dev, "failed to add gpiochip\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user