projects
/
openwrt
/
staging
/
svanheule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af4148
)
package/kernel/leds-apu2: add apu3 board detection
author
Florian Eckert
<fe@dev.tdt.de>
Thu, 6 Jul 2017 09:20:20 +0000
(11:20 +0200)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sat, 14 Oct 2017 22:24:22 +0000
(
00:24
+0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
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 c7764b4000477423cfd79028780680c38bcd6407..4ea552cf5f7266bc41b92dda685431f6819e50e8 100644
(file)
--- a/
package/kernel/leds-apu2/src/leds-apu2.c
+++ b/
package/kernel/leds-apu2/src/leds-apu2.c
@@
-332,7
+332,10
@@
static int __init gpio_apu2_init (void)
const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
/* Match the device name/model */
- if (!board_name || !board_vendor || strcasecmp(board_vendor, "PC Engines") || strcasecmp(board_name, "apu2")) {
+ if (!board_name \
+ || !board_vendor \
+ || strcasecmp(board_vendor, "PC Engines") \
+ || (strcasecmp(board_name, "apu2") && strcasecmp(board_name, "apu3"))) {
err = -ENODEV;
goto exit;
}