summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-apu.c
diff options
context:
space:
mode:
authorHans Ulli Kroll <ulli.kroll@googlemail.com>2018-03-05 18:09:10 +0100
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-03-20 20:28:00 +0100
commit92d7ec1d71e351f11ba503369eb78225510cfcc7 (patch)
tree1e4bfb1bf3704f15e1a0338379c9c669118682aa /drivers/leds/leds-apu.c
parentd1ed7c558612630ce4c48e440a6fdd8d4785f6a3 (diff)
downloadlinux-92d7ec1d71e351f11ba503369eb78225510cfcc7.tar.bz2
leds: Fix wrong dmi_match on PC Engines APU LEDs
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>
Diffstat (limited to 'drivers/leds/leds-apu.c')
-rw-r--r--drivers/leds/leds-apu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c
index 311e98b1823f..90eeedcbf371 100644
--- a/drivers/leds/leds-apu.c
+++ b/drivers/leds/leds-apu.c
@@ -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);