Commit 93562049 authored by Enrico Weigelt's avatar Enrico Weigelt Committed by Jacek Anaszewski
Browse files

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: default avatarEnrico Weigelt <info@metux.net>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent cc92e3cc
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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;
	}