Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7020738ybi; Mon, 22 Jul 2019 05:50:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeGm2qyiKtvRm2pjFBfxR6Akj/qgKjcZo4rZ9q8r0C7Iz+MprAYrrZ5rpl6svjv74PmPA7 X-Received: by 2002:a17:902:467:: with SMTP id 94mr74626898ple.131.1563799816383; Mon, 22 Jul 2019 05:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563799816; cv=none; d=google.com; s=arc-20160816; b=xzYdaqcIRzYiBTtuRrxzBnwlOrqSqrM5F6mHPZJvxyJz9Oo0msUATZAsSvTAHgjaGb +lvn8uAd/VSOKD6YGruhUMe9I50tTV97Ak0kyE1mBMTRx2x4rkOevj8tRWw3rRRX/Cy2 HYerQdpHCTalA/pTlckZ58jpwX1t+b+BjBJBwEh602Y8U/QN9bVNkMWD7RHCBGwOwaeP 8pAn+G2vW+m04iCBewR47f5yB2HQIzFRLjoS3aTYsy1cN3aF7nmSdjGnR6cfQl4HDBYI 2oMXkbSt5qtfqIk4hU1pd95DlruhjpKC+XdcBP4QpFJmu55XPnbhgJC7miuVZa8kTuTe lgSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=UZ5UkAKz3aGO9yP0EmElPaovMtcR05zCokzbpH3OUqs=; b=tpLoq++0tL4TBB5tOIrBtHLJOAXgnILXgjM5yYGBG0keiYgVYGQIkypiSy8VtddKvX IDLBFJ/8hnaJuFqF1r/4u5EYQq+UP+QetBP+aA+tLEHtI0zoktx9V7Elk9NSIJw2zKdC n+bWcpGy5y22EvuKiB2zC7SieeVjW0Pc3uKIAI33jKt7AuaH4cpl620IQx5Adwm7TbOs 78T45jmMWyYo72lXUMvwiiqhefwivP4HP/ADPDxmHXL6ySLND7CnofoSRUnFKOypEroQ qgb4dR1ZsIKXivJr7jigHoRVs9OupQXBe6rUQrM0M6jQOCq0QsvQpiJClqwVHtgAiLRT sP7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j100si8491291pje.52.2019.07.22.05.50.00; Mon, 22 Jul 2019 05:50:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730105AbfGVL5F (ORCPT + 99 others); Mon, 22 Jul 2019 07:57:05 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57733 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727628AbfGVL5F (ORCPT ); Mon, 22 Jul 2019 07:57:05 -0400 Received: from orion.localdomain ([77.2.59.209]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M2w0K-1hqdOd3Yho-003PSE for ; Mon, 22 Jul 2019 13:57:03 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v2] leds: apu: fix error message on probing failure Date: Mon, 22 Jul 2019 13:57:02 +0200 Message-Id: <1563796622-16233-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Provags-ID: V03:K1:g3BRSpT3sGDHfiPAhfiiiVrIU1s7j7HdG9ff3EBy8IsNziaSFlk 5JznDmpQYycUtW9SHxND8lsux9eRimSsNlx5qBUTXe42cG1JqeViytKf2LpR5yMVJ0t9sgR MspkIfthHNoywIyl1tvUfu0ugzrXkP4ilEN85BWayPPRyTAUb3M2FEdsPnx9BAXbTqFZUvO QwQWD8Fk/zA1AUrDdZrAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Zh43nIgYIcM=:t0GENg7z1zIsbBuHjdX/R1 7MvPrW0mYN/EyfFsqDLFGiOhEdQcS4VQU6phg3eGeBC4D/teyrtO0qq8G3IGjMIrrkfqESTX0 ShT+ER4EJVYTxRMMwT5vcB1slmgjXoI2YH+M7i3g9POpqNyMNgQDe/cCwzTH36CZLJgIfsKu6 cmau0punCJQlLkihiqVeUaitKlBjTnLREAn4CGtfg7rPueHVPVf9z21YZEvJv/H5fEA11EBcp k+MD0jqaZUfCGlehkPvlxxyAhyzmQJIB4yudryOZA87lzS1jaIZl2fBlq+xHM3PCobTncEgxG X4KlR1VqXXc2/fVzcRckRBJ9AEMEZyZUyRjF6vIuR9oQPDs4Z7QET6YL3Kjx4b3YqNFtvKh2B FH96sOhrm7LStLITFhuVaGfb+4ja12rFP8sXi/yp6kbVnrnp5GNuqATFEIcG6fCSHwGVnJPN2 7/ge936Ptw4uXJUKgoN1fmpRyXoddjG2SYGpSd/bAZogTg5jdhxiaPZQdv4kNywr8NeEQQAxL l/cP5c1/eZLs2rJjY6APR7y/cuJMKkPqgDwPymACvc7JPeS5iiOr5YXlQEcqBUn6oH23Z0Vfa 1VR+p8R7nj+kG6mpdEIQ5KINF00T/7q8PHGEvzjlYe3cQ0vAp1ABy3ckRXOnw6tMDnQoGc8Le uk67M3Ic5Qcl/zIcyFG9pTJYk0ynrmc92Rwux1B3BRBOKo6J/HPnnacroMW8nKHSM4sabUypi LNnwpzHsQg8XQDip+2zdHcJYI8DJHH89agVuww== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Enrico Weigelt 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 --- drivers/leds/leds-apu.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c index 451cb9f..d794f49 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; } -- 1.9.1