From: Sebastian Fleer Date: Mon, 26 Mar 2018 14:20:43 +0000 (+0200) Subject: leds-apu2: add newer board names X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e42cbaf2a1e40cfdd1abde876a1bb66db784420;p=openwrt%2Fstaging%2Frobimarko.git 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 --- 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; }