Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1221000pxf; Fri, 12 Mar 2021 05:04:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWsXBcAJbwMg40ATeS3EZGjTN+k+PgXMmsPW5mJnYoDwHikNd4IJGj1sXSE3BpMOuSfntI X-Received: by 2002:a05:6402:1d95:: with SMTP id dk21mr13842613edb.280.1615554267569; Fri, 12 Mar 2021 05:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615554267; cv=none; d=google.com; s=arc-20160816; b=bepfnROBFoA/y7sp0JERc6n9eWjuiUktemCkhXPIz2oP3Mj5pEHH3QeUY5C8ntTzj2 oBhuGtffrRbPCd+VjSj2CrwIoptKOKwcJOSyG4bkHSb/gtXMWRV0iQR92UifvxEBv4pX BR7l+GQyQgDVy+FxoT390KHanzauvOPkxUml2PraP++usWQgK8PViWiWdmNnr9P3RTBE ZTNLdRj5zFunMPP9jf815iWrdcGSSWq5/jX5Vi3FKMZqAYrYlWQVMvc/CNalr9p3CH/8 HCG3tov593WpXntCAAV6x2CeL3sW4yVRRH88H+Z+m8z1zXQ3lTLwJd2x354cDDMQGoQt V1wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=b8NNjFyWxFOcHx1vWVKBqfmi8BMkF6tNPar9f0Nd3gg=; b=hNQUqlOi3EcLtnshEQUTRqVUDoJj/JEXtIHK43uk9AXBykoZxq0VEfYuX2doFpRX4e HZ8mGHlFXxfttrwTbgsjp/t0siJrCpS9y72k8PdRBMb4eHiYy2fr6oESZ36w7eeiTxX7 M/EwycDsO6JN7sWeJYyiH+ilpKKMM3Dv+LpJaH+KhU00uD2uOtxWHkpLBnjlygeGN5ul efRLESoU6vFwI7g8R9pKR9nZlbkSMf9dxwwS7w4N6ApBuOzFuoOkgjbR63G8bQSNFcyz 6fVVsyCxzxePnlxYZpnij77eHmjqMZ8ndkBnjfg3HMBMu4eFSmmvGolXCymwbbm1n7rg G4jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si4077510edj.545.2021.03.12.05.04.02; Fri, 12 Mar 2021 05:04:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231578AbhCLNDH (ORCPT + 99 others); Fri, 12 Mar 2021 08:03:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbhCLNCw (ORCPT ); Fri, 12 Mar 2021 08:02:52 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E79EC061765 for ; Fri, 12 Mar 2021 05:02:51 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:f9e2:c536:b8cc:fbbc]) by xavier.telenet-ops.be with bizsmtp id fR2o240011ACAb301R2ovR; Fri, 12 Mar 2021 14:02:48 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lKhRH-0077p6-JF; Fri, 12 Mar 2021 14:02:47 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lKhRH-00EDuy-6m; Fri, 12 Mar 2021 14:02:47 +0100 From: Geert Uytterhoeven To: Marek Vasut , Liam Girdwood , Mark Brown Cc: Yoshihiro Shimoda , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] regulator: bd9571mwv: Fix regulator name printed on registration failure Date: Fri, 12 Mar 2021 14:02:41 +0100 Message-Id: <20210312130242.3390038-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210312130242.3390038-1-geert+renesas@glider.be> References: <20210312130242.3390038-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If a regulator fails to register, the driver prints an error message like: bd9571mwv-regulator bd9571mwv-regulator.6.auto: failed to register bd9571mwv-regulator regulator However, the platform device's name is already printed as part of dev_err(), and does not allow the user to distinguish among the various regulators that are part of the PMIC. Fix this by printing regulator_desc.name instead, to change the message like: bd9571mwv-regulator bd9571mwv-regulator.6.auto: failed to register DVFS regulator Signed-off-by: Geert Uytterhoeven --- drivers/regulator/bd9571mwv-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-regulator.c index 13393cdc6be1497e..a4d406022587d59d 100644 --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c @@ -301,7 +301,7 @@ static int bd9571mwv_regulator_probe(struct platform_device *pdev) &config); if (IS_ERR(rdev)) { dev_err(&pdev->dev, "failed to register %s regulator\n", - pdev->name); + regulators[i].name); return PTR_ERR(rdev); } } -- 2.25.1