aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-07-06 11:20:20 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-10-15 00:24:22 +0200
commit2e6d4c362bf110830f3db23513c1c2b422bf804e (patch)
tree54d3a2da71043e04ae43831014b7a29193236c67 /package/kernel
parent2af41487e0af217b1a29c8fc73eb36e932780c7c (diff)
downloadupstream-2e6d4c362bf110830f3db23513c1c2b422bf804e.tar.gz
upstream-2e6d4c362bf110830f3db23513c1c2b422bf804e.tar.bz2
upstream-2e6d4c362bf110830f3db23513c1c2b422bf804e.zip
package/kernel/leds-apu2: add apu3 board detection
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'package/kernel')
-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 c7764b4000..4ea552cf5f 100644
--- 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;
}