leds-apu2: add newer board names
authorSebastian Fleer <pubalias@posteo.net>
Mon, 26 Mar 2018 14:20:43 +0000 (16:20 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 3 Apr 2018 21:26:45 +0000 (23:26 +0200)
In recent firmware releases the board names changed from "apuX" to "PC Engines apuX"

Signed-off-by: Sebastian Fleer <pubalias@posteo.net>
package/kernel/leds-apu2/src/leds-apu2.c

index 4ea552cf5f7266bc41b92dda685431f6819e50e8..2fefa857cb7b629230ad64276560fb7194e9c2da 100644 (file)
@@ -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;
        }