summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-apu.c
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-07-22 15:08:51 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2019-07-22 22:57:28 +0300
commit93562049a62c5519b3787a428cdd3cfa7fc9e7d4 (patch)
treed177f977bf54efeeafbf9f3bbc4dc3e7067adc57 /drivers/leds/leds-apu.c
parentcc92e3cce5db4efd6b555102dbf267c8c76bb811 (diff)
downloadlinux-93562049a62c5519b3787a428cdd3cfa7fc9e7d4.tar.xz
leds: apu: fix error message on probing failure
The current error message on failed probing tends to be a bit misleading. Fix it to tell exactly that an APU v1 was not found. Signed-off-by: Enrico Weigelt <info@metux.net> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/leds-apu.c')
-rw-r--r--drivers/leds/leds-apu.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c
index 451cb9fe0653..d794f49f9838 100644
--- a/drivers/leds/leds-apu.c
+++ b/drivers/leds/leds-apu.c
@@ -170,13 +170,9 @@ static int __init apu_led_init(void)
struct platform_device *pdev;
int err;
- if (!dmi_match(DMI_SYS_VENDOR, "PC Engines")) {
- pr_err("No PC Engines board detected\n");
- return -ENODEV;
- }
- if (!(dmi_match(DMI_PRODUCT_NAME, "APU"))) {
- pr_err("Unknown PC Engines board: %s\n",
- dmi_get_system_info(DMI_PRODUCT_NAME));
+ if (!(dmi_match(DMI_SYS_VENDOR, "PC Engines") &&
+ dmi_match(DMI_PRODUCT_NAME, "APU"))) {
+ pr_err("No PC Engines APUv1 board detected. For APUv2,3 support, enable CONFIG_PCENGINES_APU2\n");
return -ENODEV;
}