projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139eb68
)
leds-apu2: add compatibility for linux 4.9
author
Felix Fietkau
<nbd@nbd.name>
Fri, 27 Jan 2017 10:55:22 +0000
(11:55 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 1 Feb 2017 16:49:52 +0000
(17:49 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/leds-apu2/src/leds-apu2.c
patch
|
blob
|
history
diff --git
a/package/kernel/leds-apu2/src/leds-apu2.c
b/package/kernel/leds-apu2/src/leds-apu2.c
index 00f80a3fa8bb4573d3369165de6e0a9700a21a2a..0a60df1bc302e153ba4367100fa7e700170acaae 100644
(file)
--- a/
package/kernel/leds-apu2/src/leds-apu2.c
+++ b/
package/kernel/leds-apu2/src/leds-apu2.c
@@
-194,7
+194,11
@@
static int gpio_apu2_probe (struct platform_device *dev)
}
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
gpio_apu2_chip.dev = &dev->dev;
+#else
+ gpio_apu2_chip.parent = &dev->dev;
+#endif
ret = gpiochip_add (&gpio_apu2_chip);
if (ret) {
pr_err ("%s: adding gpiochip failed\n", DEVNAME);