From: Florian Eckert Date: Thu, 6 Jul 2017 09:20:20 +0000 (+0200) Subject: package/kernel/leds-apu2: add apu3 board detection X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2e6d4c362bf110830f3db23513c1c2b422bf804e;p=openwrt%2Fstaging%2Fdangole.git package/kernel/leds-apu2: add apu3 board detection Signed-off-by: Florian Eckert --- 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; }