aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSebastian Fleer <pubalias@posteo.net>2018-03-26 16:20:43 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-04-03 23:26:45 +0200
commit7e42cbaf2a1e40cfdd1abde876a1bb66db784420 (patch)
tree0a84cce1678a4533e7ffb6ec76d035b83dd0119c /package
parentfe8350e92e9f828698b0f3e6bec17064a389074a (diff)
downloadupstream-7e42cbaf2a1e40cfdd1abde876a1bb66db784420.tar.gz
upstream-7e42cbaf2a1e40cfdd1abde876a1bb66db784420.tar.bz2
upstream-7e42cbaf2a1e40cfdd1abde876a1bb66db784420.zip
leds-apu2: add newer board names
In recent firmware releases the board names changed from "apuX" to "PC Engines apuX" Signed-off-by: Sebastian Fleer <pubalias@posteo.net>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/leds-apu2/src/leds-apu2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/kernel/leds-apu2/src/leds-apu2.c b/package/kernel/leds-apu2/src/leds-apu2.c
index 4ea552cf5f..2fefa857cb 100644
--- a/package/kernel/leds-apu2/src/leds-apu2.c
+++ b/package/kernel/leds-apu2/src/leds-apu2.c
@@ -335,7 +335,10 @@ static int __init gpio_apu2_init (void)
if (!board_name \
|| !board_vendor \
|| strcasecmp(board_vendor, "PC Engines") \
- || (strcasecmp(board_name, "apu2") && strcasecmp(board_name, "apu3"))) {
+ || (strcasecmp(board_name, "apu2") \
+ && strcasecmp(board_name, "apu3") \
+ && strcasecmp(board_name, "PC Engines apu2") \
+ && strcasecmp(board_name, "PC Engines apu3"))) {
err = -ENODEV;
goto exit;
}