[openwrt/openwrt] leds-apu2: add newer board names

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 3 14:27:27 PDT 2018


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/7e42cbaf2a1e40cfdd1abde876a1bb66db784420

commit 7e42cbaf2a1e40cfdd1abde876a1bb66db784420
Author: Sebastian Fleer <pubalias at posteo.net>
AuthorDate: Mon Mar 26 16:20:43 2018 +0200

    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 at posteo.net>
---
 package/kernel/leds-apu2/src/leds-apu2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/kernel/leds-apu2/src/leds-apu2.c b/package/kernel/leds-apu2/src/leds-apu2.c
index 4ea552c..2fefa85 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;
 	}



More information about the lede-commits mailing list