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 <pubalias@posteo.net>
This commit is contained in:
parent
fe8350e92e
commit
7e42cbaf2a
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue