提交 93562049 编写于 作者: E Enrico Weigelt 提交者: Jacek Anaszewski

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: NEnrico Weigelt <info@metux.net>
Acked-by: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
上级 cc92e3cc
...@@ -170,13 +170,9 @@ static int __init apu_led_init(void) ...@@ -170,13 +170,9 @@ static int __init apu_led_init(void)
struct platform_device *pdev; struct platform_device *pdev;
int err; int err;
if (!dmi_match(DMI_SYS_VENDOR, "PC Engines")) { if (!(dmi_match(DMI_SYS_VENDOR, "PC Engines") &&
pr_err("No PC Engines board detected\n"); dmi_match(DMI_PRODUCT_NAME, "APU"))) {
return -ENODEV; pr_err("No PC Engines APUv1 board detected. For APUv2,3 support, enable CONFIG_PCENGINES_APU2\n");
}
if (!(dmi_match(DMI_PRODUCT_NAME, "APU"))) {
pr_err("Unknown PC Engines board: %s\n",
dmi_get_system_info(DMI_PRODUCT_NAME));
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册