package/kernel/leds-apu2: add apu3 board detection
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
2af41487e0
commit
2e6d4c362b
1 changed files with 4 additions and 1 deletions
|
@ -332,7 +332,10 @@ static int __init gpio_apu2_init (void)
|
||||||
const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
|
const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
|
||||||
|
|
||||||
/* Match the device name/model */
|
/* 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;
|
err = -ENODEV;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue