Message ID | 20240911151555.2915258-4-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBMXIQ23QMGQEARI2RDA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D511642E8A for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 11 Sep 2024 17:16:02 +0200 (CEST) Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3750b4feb9fsf571381f8f.1 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 11 Sep 2024 08:16:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067762; cv=pass; d=google.com; s=arc-20240605; b=AiGK8Kn03Mrin1JSs25OM4Xz3+a8toZ8mhGH7KtEkbQ6GVhtupw9R8MeOPT2QN0zMb fPOQOrWDhIgpedp5vKFd12N00T17OSOxmKI9yiSeRqumOXXUDroAIEwFRLvox5Kjnb9/ 67849cwlMdmhTOwon1i3rv5ZcPRIl4NnIl81Egxx74D9mjladvt1IC/Y9o1alKVgVG73 4o1GinQUV60kLGC8oHCEIa0s6nza6QRnyipM/opSPKNRy8mPuBEHWkFiZKmTolbJ47IC gJqoBzS5zhxtmrsSBl1U7mBjI4KNRQiYfT00JcNS84b/nIaIbGZnOMmwYO6Z/NsxcCsq yUog== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=RvLgs0HOrXEMp1XjUNUssN6CvLW8YgVLDzKmU21Ndjc=; fh=zMeJaiX4dLi3yfyO97gFnMJJwtpo9nagu9piqj3f3IA=; b=M+3t6AWYbUpH5ZzDramPg7W7Ney/aNL+smzLntntrmOwm0lvobBvVF1YhAnw/QXrJQ 34J0uP28LxJer/XBcoJkiSBmpVvFIKxw7VFRi4RB1GtUW+f4yKCbl6/2Kw4vnEZ/7UaP +DVB0xGTA0zABbuu0RKo8L3QBJCJ89YE+dyX87Mt+40Tphlr6XRB5Mu4r1okQgaU2MfL MH7Z0+3OH+J/PQ5PyJk00wikDN5tDvww4I1pZcZdLC19MQQVldnmUdys+CDaXnieOSxE 6MKqCOGjS3ajruiOwSkn/LICgCdfeRNHrL+ojqPdH1RVcSKuPu7VmVvdvUY/OU+1+OAw swIw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="WrM/Psro"; 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=1726067762; x=1726672562; 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:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RvLgs0HOrXEMp1XjUNUssN6CvLW8YgVLDzKmU21Ndjc=; b=qAzosMJY5Bb12U9IppUQTcJlDXE0nGwgmMK+A499sbq0qveWjhksabI9OB9vTCcolZ z/ZeiyTxeFuwulOuzlFQgUhkIbagHadHVZOaWhN2qEfCHaB3MPMz8Bb3sVkJRtfRpXTc i3IMISd4dqZPDpHFm+Vj3dkcNRPVq/WcOlz68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067762; x=1726672562; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RvLgs0HOrXEMp1XjUNUssN6CvLW8YgVLDzKmU21Ndjc=; b=lyZ61EA/Xom9eVZ6JYNfV9QNR6oBMJCZgQNnV071jJQb7InTdLcJf/MDVLG46qBPqi BMDA0I4d2VJMqJQxTZHGVy5dvxlkGqbJ/a3OmWK5CdLfbGmCWThrpckmj4GPnW1NZCpg 5QJ7FZ/tlafcYJ9vBKBbYK7qjI6Dq1n/C3x0hiJUaql5hGdqMDtLhfw5WCfy54Lte8ps /0Wv2CYUicsDL7rQyYmGXa6nIPgpqXOTRtLJHGbwAI+QoIhS5avHY8LIqtaFbMCwPpOk V1Jz+S82LqT2XVscYWt+Y63KLo5gQko/oVQHr6SH1vUHcCHDg4V1k3nd3n5Sp28y6BW+ 8nbg== X-Forwarded-Encrypted: i=2; AJvYcCVqLwhBVSyxQvSngx/r4u5XFGLZw5AaDSvPCutWRC5+xF84vRSY2Z1uiwTwV1QmeYgCpBl0MHVmvqDw/jxi@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxqHLUlBEDzldrgOSmSkzGU4Mnklo2eU6sZ/GW0froF/9dFNQMO z7C/RC1PocxKC6m8latnNceZklGe8rEv3/Wf0qy5ZbWKSoWTzhb/iyY5ciaT5zgz7Q== X-Google-Smtp-Source: AGHT+IHj5viUdfSiG9lT2jIcFghttEIu/Ve5ZrNXFI3wIF+pUhc5d7Lij2ayimV38chpRx76evBs9w== X-Received: by 2002:a5d:40cb:0:b0:374:b9ca:f1e8 with SMTP id ffacd0b85a97d-378a8a7aa3fmr4271801f8f.20.1726067762432; Wed, 11 Sep 2024 08:16:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:f001:0:b0:374:c124:db78 with SMTP id ffacd0b85a97d-378883bbd01ls1302586f8f.1.-pod-prod-00-eu; Wed, 11 Sep 2024 08:16:01 -0700 (PDT) X-Received: by 2002:adf:e9d2:0:b0:374:c613:7c58 with SMTP id ffacd0b85a97d-378a8ab1658mr4269437f8f.29.1726067760914; Wed, 11 Sep 2024 08:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067760; cv=none; d=google.com; s=arc-20160816; b=ceHjrL9L8BN4f6eB7+jMZxoppmlxKgGcrhS7EFtTQDYIK4QleIV17QiCwCxxOzezyu oOTD9CZ3QcNnH0hKtSPaCFRVh0DF2G9REXlGPj5E+dY7P/t0vgnPhzHHnl4V0x3oDzNV 2kHx4Kjj0cgwjjLmkWf4VfvqzTWtmSZL0s8nE4xcB0B3PtEGVcTC8QUKtrCrmGsT+rav 6seHCrNkI3KtXHdn/s1rdJRT70IsyENaYyfO4lte3jHO++xOTDMsGMRWxvMZlH3qRQft 2kBzvqBU5raVenQuQ5WY2xvzF+ChfmSvAVGDC8n4ERCq2F3CzgPy2nMa7WcfYP1Pv9hW Qhcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=XEQZPsX2VOc/YYlt3n/YuNQPwhUJv0qFQcV6Vk2muh4=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=E70vHCSI6cHJW86DK9qmxt/bRAb3tErwPde4e88vwbqcCrVhdYWhmLHlmblUJBDzWV pfFjFdPFzN2ayU1BBftHaX94IaX7w1tJ+F7M5NPX8Esw17XwT9D4AaieBs1vymRdeLEy PuF5LIqaxbIDaIwb/bpU8FZ6GztE3G6IChMQZrKqq4dZnXqDm2tsLH4OKS3Mp053LF8r Y0aW+OIpBTl4I5CsvDM3QYvfTPurFhguxSzqcERoUlLdsrd2MMjtOxjXmrZ1Foze/alT 90Y1oz/h4ni/TLG95p8oEdN4+iD85mLPBrJo31f5vDo7pEXOzWI1aW6MVOJ7EL6Xkkrl D4yg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="WrM/Psro"; 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 ffacd0b85a97d-3788b5846b7sor2094939f8f.5.2024.09.11.08.16.00 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 11 Sep 2024 08:16:00 -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:a5d:4b4b:0:b0:377:94b:4f51 with SMTP id ffacd0b85a97d-378a8a3f05amr4138653f8f.22.1726067760213; Wed, 11 Sep 2024 08:16:00 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-378956d37a1sm11797177f8f.77.2024.09.11.08.15.59 for <linux-amarula@amarulasolutions.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:15:59 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 04/10] pmdomain: imx: gpcv2: replace dev_err() with dev_err_probe() Date: Wed, 11 Sep 2024 17:15:49 +0200 Message-ID: <20240911151555.2915258-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com> References: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com> 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="WrM/Psro"; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/pmdomain/imx/gpcv2.c b/drivers/pmdomain/imx/gpcv2.c index 856eaac0ec14..374732335752 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; }
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 <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/pmdomain/imx/gpcv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)