Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp314329rdb; Tue, 19 Dec 2023 19:00:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IERYDO8IKrl7MjBRHJ59yjhMlpEY5Nykn49ZS5MGzKDusaSWp3/E/L4EZRB1KkOQGA6isCO X-Received: by 2002:a05:6512:a90:b0:50e:4b8a:df86 with SMTP id m16-20020a0565120a9000b0050e4b8adf86mr931009lfu.32.1703041230176; Tue, 19 Dec 2023 19:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703041230; cv=none; d=google.com; s=arc-20160816; b=Mqt/Q8HZF/GYEUoDx0zrGnlH0APNiTJfMRacJyml6pySNja0OWsOfX6tYoiUGL0zdp 6l+RBZwuM+85hvvnC4ABMbmyLOJnU+UJY/qD4hky7rO/T0VHFk+R6isVx15BxlgDUAA6 fezdJh4MViNgiYkn8tlK09q8QLH6qTtUzbrb35fToRg4NEoEqdoPSdY+JqseCBL0XVbP fe2e6iwxlmI/6+4VhoTGaIkIDQGqW/V4fau4qeuBvji48rrycGFqFz3DVBNUe2pwG75s 9UVK9XHu6lIQrRRRWGFDrQWbszzpUePfpW3824nuTM8WGAO6eBTOcvYZTizjatLFXKVI 9Rzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date; bh=Q7qd9rAYbyE78EI7G0jqVeD6w7iai5vItPPEl4188QU=; fh=dP7dsXdsr14PAp8cLVnA1AvjUXbvIFoIcNNW8BRuuw0=; b=U5VS4VrGn2hgKRyYWlIAsJ6h2mnC4SaE0SdrNo7P34+FpWPlt3eoHJzD3S0EHXKy8O ylECtMMLIC8mYTotBryUdrJfs/ovWXs/Wq3W93p2bad5utjEcWyDoPl7uTlnmT7H19If 8cPCnUjXLWXuvKV21jLBgtt8Enu2dWzOlYpZQIew/VDd3wkIlKNIC6qze7o+HsjQx281 Q21yAHVjU2DTLmYVkU/58gX5134Z5OJ7o9682Wmcz/BbOkZLf8YYL59PvF6/M4qKmUwT T4YVsNyHVjjRY99eSjAzN1lST4mllavc4syqG/fw/318KLfGhTY2rLjBNe6VbxaZPS9J pLOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q17-20020a170906b29100b00a2356d0293esi2445171ejz.568.2023.12.19.19.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 19:00:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E743C1F26336 for ; Wed, 20 Dec 2023 03:00:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1B34FBF9; Wed, 20 Dec 2023 02:59:44 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mxde.zte.com.cn (mxde.zte.com.cn [209.9.37.143]) (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 6E5E1CA41 for ; Wed, 20 Dec 2023 02:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mxhk.zte.com.cn (unknown [192.168.250.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxde.zte.com.cn (FangMail) with ESMTPS id 4Svyvq0fhlz68Jxc for ; Wed, 20 Dec 2023 10:59:35 +0800 (CST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4Svyvf0vg8z4xPYr; Wed, 20 Dec 2023 10:59:26 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl2.zte.com.cn with SMTP id 3BK2x8Rl080444; Wed, 20 Dec 2023 10:59:08 +0800 (+08) (envelope-from yang.guang5@zte.com.cn) Received: from mapi (xaxapp03[null]) by mapi (Zmail) with MAPI id mid31; Wed, 20 Dec 2023 10:59:10 +0800 (CST) Date: Wed, 20 Dec 2023 10:59:10 +0800 (CST) X-Zmail-TransId: 2afb6582587effffffffa43-f1f6a X-Mailer: Zmail v1.0 Message-ID: <202312201059100522230@zte.com.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?UTF-8?B?W1BBVENIIHYyXSBtZmQ6IHdtODk5NDogU3dpdGNoIHRvIHVzZSBkZXZfZXJyX3Byb2JlKCkgaGVscGVy?= Content-Type: text/plain; charset="UTF-8" X-MAIL:mse-fl2.zte.com.cn 3BK2x8Rl080444 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 65825895.000/4Svyvq0fhlz68Jxc From: Yang Guang dev_err() can be replace with dev_err_probe() which will check if error code is -EPROBE_DEFER. Signed-off-by: Chen Haonan --- drivers/mfd/wm8994-core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index d5ac066f9db4..c43273527425 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -378,10 +378,8 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) */ ret = regulator_bulk_get(wm8994->dev, wm8994->num_supplies, wm8994->supplies); - if (ret != 0) { - if (ret != -EPROBE_DEFER) - dev_err(wm8994->dev, "Failed to get supplies: %d\n", - ret); + if (ret != 0) { + dev_err_probe(wm8994->dev, ret, "Failed to get supplies\n"); goto err; } -- 2.25.1