Skip to content

Commit

Permalink
leds: Fix wrong dmi_match on PC Engines APU LEDs
Browse files Browse the repository at this point in the history
BIOS on APU board doesn't expose board_name property, and thus
we have to rely on the product_name instead.

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
  • Loading branch information
Hans Ulli Kroll authored and Jacek Anaszewski committed Mar 20, 2018
1 parent d1ed7c5 commit 92d7ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-apu.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int __init apu_led_probe(struct platform_device *pdev)

apu_led->pdev = pdev;

if (dmi_match(DMI_BOARD_NAME, "APU")) {
if (dmi_match(DMI_PRODUCT_NAME, "APU")) {
apu_led->profile = apu1_led_profile;
apu_led->platform = APU1_LED_PLATFORM;
apu_led->num_led_instances = ARRAY_SIZE(apu1_led_profile);
Expand Down

0 comments on commit 92d7ec1

Please sign in to comment.