mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
d1ed7c5586
commit
92d7ec1d71
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user