From patchwork Thu Oct 24 10:35:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3585 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 522C23F9F7 for ; Thu, 24 Oct 2024 12:35:46 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5cb81481a4bsf424372a12.0 for ; Thu, 24 Oct 2024 03:35:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1729766146; cv=pass; d=google.com; s=arc-20240605; b=JW8zeEh8fw1cyaW5KUY4ade/JmeoSLTIZtK3Kg4+cpUTAtYSSvwc/17QcPqGafUYkr DBBV/sdUtvohKqvoDp3pbbko7eR5rVqOAItqkYhBMFOkGTMvIBMl2BHZeEwuccAKsg7r BK8Dg/uhOoUeRDEmMUOhIqE0XC2zQx5zhcHZomwApd+uEYCE1wQoABaZD4NQX5P20XHl T1Z67tbPlxM++N8WQlM4VFwsymhXrw1BkY1QjJLKpD4zI+HCfpeGvR06nduD/CHTvOV3 hr8eOesnvav+DQyDvMMEH9o8XcvrNJEYn/O1xogqa9J9qng6IFoQ6dVjiZLYk0EcS7Rv 1lmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=qoVPQkp+vq6uMrvVU0WBnLPkekMJ9HWAskiXp8PKBQw=; fh=Vq4LsUK4pth/OsaRTkD0k2HA4dXdcWS3H8XRs/BRHbE=; b=doLofJHPfllUOjY0btXyR4AfIusYeIEAE6uElYftGBJ6P7EjNDgy9aVqfqA9oErn7F JE1rJ3bofT4oSbRQpn/aawAUri3DIM28SSHU/8nGu0vGokeoUkcSlfTVguoc9j5ofYpt X0lFBDq0I/4yB1tL82zKzcY4uqh9XsNmn80dzP386C1YR5rkJQYRoRpv011ygC2TWSdM kfO7R5u+Kh6lU3J29uniXA8A2YeYRsZGR4FrC6ECKd2+1AT0hU/iFciUnaz1Dzjyj+LU hJE4RYfM4I4awXC8SSZTrN6O3wTtg2ezIv5XbE/q8mKNgDdYJK9+QP/yUjHYqYCvmDOT 7bcw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DSGJjIs4; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1729766146; x=1730370946; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=qoVPQkp+vq6uMrvVU0WBnLPkekMJ9HWAskiXp8PKBQw=; b=hzntnU+LO21XqTDUMN3AabqE0urjD0KfBjvjt/ZCa7xXfc4w6deedSIL0dsEewWlm/ yNf2fR0sQo1/+6qBqlgiH4wD4KXmpzPhJmSojoc/S/P6n9zfIw677XAJ4kwaH4y5AOoj d8QJcIsEmwQUf+y+WCgPXd92wgsbSeyGUc2g8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729766146; x=1730370946; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qoVPQkp+vq6uMrvVU0WBnLPkekMJ9HWAskiXp8PKBQw=; b=Kz1x2IFmmPJa/4aCF+Rod2Zn8ilNd/0dKzfJSQZKbsK4JFoyS5xVTUL3OSCLAvwUIX ImFBiC7Y70UKfpLWUQK/TASBVOFKMxJ/CKhXwfAAkK8kWHKcigHKvy4Fkt0ECEcTE+tL 6SHnprS/eID39vxowL3ULyd2lPuaTqIKsfOgkVh0y+TMGO+bm4odYm9SfpqLCZwQT3+8 kDg6lPj6+e2iMGUYSJkPjk98CnPANPH+5wTxH6uT9Td0qmlxHaPp/Cx8E6UokS0FOIY2 3n19eBdjU1v6VhVjZFqmKASRzALQMpxG/ydnRl2iDMxaecjIUW2fHav/a88WLyU3RQDe z7jQ== X-Forwarded-Encrypted: i=2; AJvYcCVW+Wrk5DewU/GzdlkP1jlsOZ5i8DwzqoICjdvoKKIJ5JYKLZFfGIU78bmbh/3al/J9oqAIJWnxDi10yQkf@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyeMRMHG6h1Ls2/fZ+EgrLUjSP3qkxlYc8kWhtqW6rRTxdQDv52 mgrlhMff107FW7yMwjarECwj3bmzh6YzLGQ3iIGC/CkX7UIxt53wiNPYFa3GEQK7iA== X-Google-Smtp-Source: AGHT+IHCxiIk8KQDk2B9VI/X/x+Vej4EpgIQH3oFJ941WnHLaUkalEG0i7kN/4hq8s+qF2sKfdoEzA== X-Received: by 2002:a05:6402:4410:b0:5ca:151a:b84c with SMTP id 4fb4d7f45d1cf-5cba2460a42mr1077693a12.18.1729766145498; Thu, 24 Oct 2024 03:35:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:520d:b0:5c8:acf3:12a7 with SMTP id 4fb4d7f45d1cf-5cb99a0a139ls65486a12.2.-pod-prod-09-eu; Thu, 24 Oct 2024 03:35:44 -0700 (PDT) X-Received: by 2002:a17:907:9717:b0:a99:fb75:3ed7 with SMTP id a640c23a62f3a-a9ad27308c5mr131421266b.17.1729766143844; Thu, 24 Oct 2024 03:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729766143; cv=none; d=google.com; s=arc-20240605; b=dV9w3/unqiqhh/byDqZlBKf1KEGjUjzPrEhJazJS79Wh+j8Qxv7jGdBwe8Mkap73nk 3R/P36FDf4EFPUdwBNxim1q9ij1/aRkvq854V/7iH0o7hSDKk1KZ4I9A653hAKSHmpD4 b0dWk7Q2FlrpszDGoaoOVlcq2PUZgy/vvuimlZ2Nk/A8/2Zmi4DjgjwiNVUifxVJhy55 e0Dzom0ugC3nDCIS4spdlKLOirnT2xK3atC5qq086dWsx81EnfGhvK9CBW1v+qJ0L2js 93O3wNtHXGUEFMB+Nq+do4sjkyxaBDk52k9zrNVkcrUkbVeerjklJFGsvzncXU/NRuyC O1Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=u9pUdYv82xqt7Xgtl7+4X7WHgZzcjvtNIADtHzAjrXQ=; fh=NcMBwwiNt23f9TqX7vGiZ69SyZyyIPIFh3O627JMfbU=; b=Xt9Un3dlYQ865PjlyigrEmu8rEsM59rUQOKdD+GIzYlUnlDlczxGy8OcopGkcADUwp eO8Ug0XPCDKhDZW3fwuIxjDe7vpBbsk4LpgQKfh4zGNDgdUarn9C4N2R/kaMdb4RFM0f NPjS5Tten1Gvva67qLuBvZsWVIb7XBSMH5vW0uDvlzyHWRqEyOKm3ICjJ7elU9JPbab3 FUT80uveuXNJHCBT+BM4UuDjxa5A8DfvukehT4nJOhgL839PwH9Snl6oTYPOIrsdCK1d 0TFnB1WZWek96+odTmXRjaCtgfkrRbBeuHIjV9+7h3DK7l6kernYk9IFwdozZVtOmzpc 0p1Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DSGJjIs4; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a9aae970dcasor198847066b.12.2024.10.24.03.35.43 for (Google Transport Security); Thu, 24 Oct 2024 03:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:3e1c:b0:a9a:835b:fc8e with SMTP id a640c23a62f3a-a9ad286b976mr132409566b.54.1729766143356; Thu, 24 Oct 2024 03:35:43 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:f79d:49dd:b804:3f48]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a91559f15sm598592866b.133.2024.10.24.03.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 03:35:43 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Shengjiu Wang , Ulf Hansson , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH] pmdomain: imx: gpcv2: replace dev_err() with dev_err_probe() Date: Thu, 24 Oct 2024 12:35:36 +0200 Message-ID: <20241024103540.3482216-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DSGJjIs4; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The patch standardizes the probe() code by replacing the two occurrences of dev_err() with dev_err_probe(). Indeed, dev_err_probe() was used in all other error paths of the probe() function. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Reviewed-by: Marco Felsch --- drivers/pmdomain/imx/gpcv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pmdomain/imx/gpcv2.c b/drivers/pmdomain/imx/gpcv2.c index 963d61c5af6d..6e6ecbf2e152 100644 --- a/drivers/pmdomain/imx/gpcv2.c +++ b/drivers/pmdomain/imx/gpcv2.c @@ -1356,7 +1356,7 @@ static int imx_pgc_domain_probe(struct platform_device *pdev) ret = pm_genpd_init(&domain->genpd, NULL, true); if (ret) { - dev_err(domain->dev, "Failed to init power domain\n"); + dev_err_probe(domain->dev, ret, "Failed to init power domain\n"); goto out_domain_unmap; } @@ -1367,7 +1367,7 @@ static int imx_pgc_domain_probe(struct platform_device *pdev) ret = of_genpd_add_provider_simple(domain->dev->of_node, &domain->genpd); if (ret) { - dev_err(domain->dev, "Failed to add genpd provider\n"); + dev_err_probe(domain->dev, ret, "Failed to add genpd provider\n"); goto out_genpd_remove; }