From nobody Sun Apr 5 16:31:17 2026 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 367DA347FC3; Fri, 20 Feb 2026 13:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771593212; cv=none; b=UadhU3m3x7789FSAIDMMuYQOh02zj0rQ3E2H5lxiEWH+d7EYRhGkmwNXfzh28/0nnZhFRoEl3WTbaAjhghurxQsnD8DTyRynM61+w3mQixFh1effk78qqfZ7INb5EqykRCuW/EnnhnxUWOSg39LUGtTk3zKWGprqUB9SaCZoHd0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771593212; c=relaxed/simple; bh=CUuqhlVJvNxE5FQrIwrsv2yBSbA6vtQ8ip1XV+wVNcU=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dqwO6Cb0Ft7ssbUtpYj4wwyOhfezpLtlpe8xeHo8H3ownlvXL45Zhq6BIpnwMcxnb/NVw2/VGUHwyE6dfgZk0+XRzVWoFnztd104YOzNfTfkjD5QQnMdKGM8JXzqAyF/AOqrU3pJMCz5Q9yvfnhDZOJzEelfN/eOVG191f5d2EM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=GXH4NHin; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="GXH4NHin" Received: from pps.filterd (m0516787.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61K87Eok3823368; Fri, 20 Feb 2026 08:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=xvffL j/vFG7xvKWKOgO9Hwtq/cjm4cl2y0XaG1ZlLbM=; b=GXH4NHin63cBa72lGJEoy YMQF42pM6NVseXl/i/VnXk3qcivMFAEtbrXlyvL14z80yexnvGBhc6K7WdKaaG8L w2hOkGJrToQpmOlryxxMZZa6qJoqxB+BlxPEvmrTgd33noNlHmall3pIKhrP11d8 bCGIPdYdU2FaKxre0yxA05MJ4PXmM/xWqYBPqrjwbNaJzrIBZGmlCb0k/Ot2ZNMx r+O2FHjFIZL2w7AlYUXirkrBAvYhrh7sehteJD5YUbWVA8e3RxtHwydPdziCsfAb +zCpqZmNPIqWzfbaPfSW2d8p2mYayt0ubjSdfQcQJZDvMKLAxO0StkWh/iNLldn8 A== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4ce0xvw0j8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Feb 2026 08:13:17 -0500 (EST) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 61KDDGZ2064758 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Feb 2026 08:13:16 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 20 Feb 2026 08:13:16 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 20 Feb 2026 08:13:16 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.1748.37 via Frontend Transport; Fri, 20 Feb 2026 08:13:16 -0500 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.247]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 61KDCsHW009613; Fri, 20 Feb 2026 08:13:12 -0500 From: Antoniu Miclaus To: Lars-Peter Clausen , Michael Hennerich , Antoniu Miclaus , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , , Subject: [PATCH 5/7] iio: adc: ade9000: use dev_err_probe in probe path Date: Fri, 20 Feb 2026 15:11:43 +0200 Message-ID: <20260220131151.74329-6-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260220131151.74329-1-antoniu.miclaus@analog.com> References: <20260220131151.74329-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=AeK83nXG c=1 sm=1 tr=0 ts=69985ded cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=gAnH3GRIAAAA:8 a=uB8TIoAt5Nq-SBkLwMMA:9 X-Proofpoint-ORIG-GUID: qJLk5qufT8M4K_zyiBNeRGmW_dUSgk7F X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjIwMDExNSBTYWx0ZWRfX9vhVm8y9Qlfk BEM7tHVwOHe1fKC8VjQMC7FKfapAeQnKkHr/cg77jifFpF/Q7rLDIb8LucMeM0JTsIM+35SCvGR thmSQo4+8f6Tm4zWbI4j4pegJtLXOe0H4/AlX2VM7qa0+SAMHYDlEkHOW+pIs6Llb4UEEV9LHoD ojFkCvDrimMGTrNePo8HwU1Lmc2Adjo48/FIPEvvjBf6P+KUUMqb/WhE9QDMu8FnIwWQHZMxFCr IpqfooJMJnpmDSby7w23UQu2Wgoj/7i4wlP4kLYTuS0PyvO/Vp9KuzmNAS3wp+B68bFYyphSS7J BHJuWV5HLqA8X3uDFRi+leooeMnprmjd+Iu2TLM6BXu1fNZ5X5SbfDJ3PwZ0T1t1Wzk790yHUnw edCGJXgQZpcmecX1z0P/eGZksI2+5096nt15eF92p/QCDPSTHwTqW+pcNiCmVHnISJyyQpNjkye HbQYZAFcFdy7rMiHOQw== X-Proofpoint-GUID: qJLk5qufT8M4K_zyiBNeRGmW_dUSgk7F X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-20_01,2026-02-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602200115 Content-Type: text/plain; charset="utf-8" Replace dev_err() + return with dev_err_probe() in ade9000_reset(), which is called during probe. This simplifies error handling. Signed-off-by: Antoniu Miclaus --- drivers/iio/adc/ade9000.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index db085dc5e526..5dcc26a08970 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -1589,10 +1589,9 @@ static int ade9000_reset(struct ade9000_state *st) /* Only wait for completion if IRQ1 is available to signal reset done */ if (fwnode_irq_get_byname(dev_fwnode(dev), "irq1") >=3D 0) { if (!wait_for_completion_timeout(&st->reset_completion, - msecs_to_jiffies(1000))) { - dev_err(dev, "Reset timeout after 1s\n"); - return -ETIMEDOUT; - } + msecs_to_jiffies(1000))) + return dev_err_probe(dev, -ETIMEDOUT, + "Reset timeout after 1s\n"); } /* If no IRQ available, reset is already complete after the 50ms delay ab= ove */ =20 --=20 2.43.0