Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4371515ybi; Mon, 15 Jul 2019 07:59:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPWCYVuR2W1SFlgkBRJHmC7ugFILMbFmJowDz79rCFuF8hTm9pZsMpfkgO0siHpRbrxbNS X-Received: by 2002:a63:7b4d:: with SMTP id k13mr26844636pgn.182.1563202776069; Mon, 15 Jul 2019 07:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563202776; cv=none; d=google.com; s=arc-20160816; b=heF1GvTbjTRDSZGc5vitF8NRr2vCxMtlaFeWl91eZGfBdXYONU270oKDaJjXqD01tu FnYrLIz7oZW3lZvHExT6ZeZYurdQbLgRwnLEVA2J2Vxa/VsVKt7+EIQQoPhD/tozEtbH OskPhXUhhpmDihkiZOQBI1P6PeXAv3HAmr0d50AyfWloT+vTx7XXj+QYQxQFPWbGhfg1 T/C1mmFPce6MHIQK57XBP70bswFXSx1WSo775JxE02SjF/fRp36wjzECKiwFbnn/Vc2V qOUEle2HRdeC9up6OjWdpjAsxoqTMI69cQ7Ba9uj3j18J7PV7+HPEiddLRZQGediYSXP YcCg== 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:cc:to:from; bh=nJiVuvP7+2l6cw9nm+h4LU0Q2KnFSjuACyIeS8Umtjc=; b=E2Ngne5j24xjH0rrYF+791Ktjy2xak+aXf1/qAUeVZ/QwiDmwBooAvUVn//cC/a1ii v16I5XmmzUhgqDwfEIgHuZtH7268g/SyFNybyDUs/RL+W1DwEVZXuH+de4N9VpmhcL5A s/vPdH4r6Nvb6fZOIt+FCasfYMQx3H2KEN9E2MTUPzr7142K85rcPlmVElS/xT9E/ubY oLdvOgXFQjq0zI/qp/6Lhy/kAFzJf9n5IVuQNhGi0d0jCUaJ2gF/LKtqEzIt4Wv8Ntms FHdlk6gPU05SJoyTrowj0MYWb4dzu0JNvD3I+SOElEzXSa3EQcR1Ke73r+S/05L6Muhq GnYQ== 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 i68si16671869pfc.153.2019.07.15.07.59.20; Mon, 15 Jul 2019 07:59:36 -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 S2391607AbfGOO6P (ORCPT + 99 others); Mon, 15 Jul 2019 10:58:15 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:41859 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391203AbfGOO5q (ORCPT ); Mon, 15 Jul 2019 10:57:46 -0400 Received: from orion.localdomain ([95.118.111.244]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQeI4-1i8XHm0850-00Ngop; Mon, 15 Jul 2019 16:57:40 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, dmurphy@ti.com, linux-leds@vger.kernel.org Subject: [PATCH 5/6] leds: apu: fix error on probing failure Date: Mon, 15 Jul 2019 16:57:32 +0200 Message-Id: <1563202653-20994-6-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1563202653-20994-1-git-send-email-info@metux.net> References: <1563202653-20994-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:QI5rtPQ3bK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ernel-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..892fea7 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\n"); return -ENODEV; } -- 1.9.1