package/kernel/leds-apu2: add apu3 board detection
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 6 Jul 2017 09:20:20 +0000 (11:20 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Oct 2017 22:24:22 +0000 (00:24 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
package/kernel/leds-apu2/src/leds-apu2.c

index c7764b4..4ea552c 100644 (file)
@@ -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;
        }