From patchwork Sun Aug 25 12:36:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3339 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 980D53F1CD for ; Sun, 25 Aug 2024 14:36:33 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5bed91ffb50sf3006125a12.0 for ; Sun, 25 Aug 2024 05:36:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724589393; cv=pass; d=google.com; s=arc-20240605; b=LXhz0goa3XtgtIncZ2ZnIHNqSZSYR+H+fYLjRymZJcrI7wiQIBoXePblvXLi6QsfGL C9De+s4qiwdOOaDpTB/IYCwK/yxPIHVrcfNd/YjFOgavweMNy+Yc6HMz5rjB0s/2SWEt v6Mu4KULH6Ei6fNPEMJBvV0DgGAqWrXp0dMrZ2oo7CSzkGfdDRvAEyz0qrTtHII1P2LC UNKvm4ndsc8oPF0ivEfxQ99d0tzBTQnFWrEv8eQfZUUeDuymd/Vu4WDOmjqwUFvSTIlK o8F/wyYyXnwsPuHhos4+cXPnxg4wwT17vNdzI38nAEyOld71zpPW957v2qBWWRmxyo4u C5bg== 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=qAiAp1uK88o4KXFC4JVlen+ewIQtowKP62+0uVUgw8s=; fh=HAfm/yO3vOhUf6p0sREkHmcAP7gGGl4tZMJ0Hkea0Io=; b=JKacBQmJ1mmPcJtUb7EVJVqBnfxLaVX5xajLT/U6d63rEW33iFoNdWIRsDGXQPIqmh wm5XF9u0iuM0X/56lQgLdOTUUDgT5mo3kT6vDAv8WMNeg6yYc1Ciq7xZZcA63nAOcIPM T2zSoUPHq7oNsskjPhpCkAAfCdLfXedlTIB6PrdCtKp9sfDStURzicBBGBgIqP84a+Ku 96fu4qMfhzIvrTZu0DdfXWo7/2WNwRP/nyl0D29ZhtBl6rrr3L3LTEw2YlXV8evRSDFI axgISiw9sK2E21A9Owmkb9WpijmjEdiQBz3dCQDMcAQivAnoJPerERWjiKTVUGbwWtgx KXdA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lLL1Tiib; 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=1724589393; x=1725194193; 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=qAiAp1uK88o4KXFC4JVlen+ewIQtowKP62+0uVUgw8s=; b=YVgwKaqnYvOhF6Pmkae6a2QbVJQ7CiG3oV7RxN6RgdyWPvFmFOr2DDIedaDeXjJcCH Zs4PXgH04jKVAsvjJ+iJIBYHjaRLrjd8awptH3ganBGdhuOl5nzS6vLNtq9pQPuV63Te y+uMJP5zN9tX0veXNEFBc+zIDDSP19cZ1M7kk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724589393; x=1725194193; 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=qAiAp1uK88o4KXFC4JVlen+ewIQtowKP62+0uVUgw8s=; b=hOC1qz/QuinyvqW/kTNB2C/6omPDBgZdLdm7mecgpfj0dvL9kzj3oAFma/3eFZxiik XlGWEUbDcjaxtmcCBRLTN2DzyIwLz2LlBHrIOFq7dr1avD5I80vOymxtd/dy5+1ZVEjo hZ5NM848Y4+SkuG/UWlUG90RdFu2lGw9UvcdGnJ5Bbef2PgAkOJxemd7l0HwAHNP3T24 pmdaUMlzNBFYvdP9k4b7m718QNevSEMRUE94I2tfMI8wHl45Fn5lRJzJJ1M4flgGxJ5j DF4bQZ0CessG5aOO4Hks0wNpJFdtPWWpsNE3rolXuZ+Gh58zkekSY2oewl6u5u1Incqu OrxQ== X-Forwarded-Encrypted: i=2; AJvYcCUQvSn4dcuiPGcW/rtqyHDgMdTmG46Sb5DNn11Eau8TzfSHufUugqV36beakM08NIXug4wV1cdB018Ay3ak@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwU3zNZFCMEGNCRYA9qYZnfjvTmw1Kqq9JVnvtZf/+8FK7Zuz1F VXXKdNZgIa4JPN/o/MQuSanVziXjRMaVHkEhqOg6Xc3HTE82Q6lbs8jvaHG9gcmOsA== X-Google-Smtp-Source: AGHT+IFAbAXTkJec5jKiNJgcmYRqalqJ08kyptHLd22ti9f513hdjq9Gb1kpF2zeSRTgbmbpnQmkRw== X-Received: by 2002:a05:6402:35cf:b0:5c0:a8b1:a1f2 with SMTP id 4fb4d7f45d1cf-5c0a8b1a660mr913104a12.7.1724589393072; Sun, 25 Aug 2024 05:36:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:35c4:b0:5be:ea4f:8c67 with SMTP id 4fb4d7f45d1cf-5bf53305b26ls1784913a12.2.-pod-prod-06-eu; Sun, 25 Aug 2024 05:36:31 -0700 (PDT) X-Received: by 2002:a05:6402:5189:b0:5c0:a8d0:8c59 with SMTP id 4fb4d7f45d1cf-5c0a8d08c98mr617736a12.30.1724589391291; Sun, 25 Aug 2024 05:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724589391; cv=none; d=google.com; s=arc-20160816; b=zHb8f7/yqao0cjqHKIDPzHC4HI1TACZbcRRZF7VMdoBBc1nfmkhuwmq+KwVfvlm3O3 +QisfslQ422bvpG1S5UP9dwstwMa4hNhdpETKz5W10HvKn8Efnr2WI/wN3glBN1JKH1f WtfMJvA0e9LcL5Ro8pyMv8Yu9GSRYXeYCLAJT6g9FRZwFMSHe1C2YsO5KtHmcGQDf3r7 tqYtQwLi2iDCzZfkjEUyiY3hDcZQiz0EbTL0R+eYGRu35C3sks+op767IvpLd8QlyJuq ENzHMltJKZ3c514JT7O5rwlHglR8lkdcPj73rBXy2IdTuElCzvPkOFjMA4is27wolMQC Z+zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=1CeKLJiREErcfFDmVmFht0rfeHvolojmCG1SEp0D9eA=; fh=JuFThJvTiJk6HZRFCsySKGMrJknfUzhxAG21hJB9qSI=; b=wijm+UCGyXETHtHthdfCGuvCT/PZ4BraRbl/Cd73EiPB9lw6eW1MPoACK4cV5bTN3K Kx4BfUuc1/aTLRqoHZf6kreLz5IfVQWW1mhPoqDWqD8vLpxzneTh0+zsDZs/IXk2SiKL tRz1m7vvTA5bIWnypfp3jlWmjyruBSI0M6Kr4APeWmIQ9X5fvjj7NKHcep+HcpDdjEJd BxlhDqPsGMzB+QFnUkuConBzTJ6pYRogH8cTg8MS2uv/5H8/MeBIN7Xam1B9rQ7pq4NN 9SrmrE44Cv/J/1IFI9Cqg3PVgCGmXxPLNEF60NTIk+V7xUK94vI3ZjzV2xOVtTOT6Ixh YVug==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lLL1Tiib; 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 4fb4d7f45d1cf-5c04a3c796csor1255983a12.4.2024.08.25.05.36.31 for (Google Transport Security); Sun, 25 Aug 2024 05:36:31 -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:a05:6402:d0a:b0:5a2:8bef:c370 with SMTP id 4fb4d7f45d1cf-5c08916403amr5020278a12.15.1724589390746; Sun, 25 Aug 2024 05:36:30 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-25-99-149.retail.telecomitalia.it. [79.25.99.149]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c04a3e89ebsm4350404a12.43.2024.08.25.05.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Aug 2024 05:36:30 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Fabio Estevam , Geert Uytterhoeven , Peng Fan , Pengutronix Kernel Team , "Rafael J. Wysocki" , Sascha Hauer , Shawn Guo , 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 1/3] pmdomain: imx93-pd: replace dev_err() with dev_err_probe() Date: Sun, 25 Aug 2024 14:36:14 +0200 Message-ID: <20240825123626.3877812-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=lLL1Tiib; 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: , This way, the code becomes more compact, and dev_err_probe() is used in every error path of the probe() function. Signed-off-by: Dario Binacchi --- drivers/pmdomain/imx/imx93-pd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pmdomain/imx/imx93-pd.c b/drivers/pmdomain/imx/imx93-pd.c index d750a7dc58d2..afc482ec563f 100644 --- a/drivers/pmdomain/imx/imx93-pd.c +++ b/drivers/pmdomain/imx/imx93-pd.c @@ -126,9 +126,9 @@ static int imx93_pd_probe(struct platform_device *pdev) if (!domain->init_off) { ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); if (ret) { - dev_err(domain->dev, "failed to enable clocks for domain: %s\n", - domain->genpd.name); - return ret; + return dev_err_probe(domain->dev, ret, + "failed to enable clocks for domain: %s\n", + domain->genpd.name); } }