Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6069654rwn; Mon, 12 Sep 2022 20:40:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6d8fFTpxCoBIuth2lP2AJRaqZV5QnWTkTJ9IAZnx4/A0vpNAV7cwm71kWN9Ll2ScxhYWD5 X-Received: by 2002:a05:6402:40cb:b0:451:2b71:9940 with SMTP id z11-20020a05640240cb00b004512b719940mr13892162edb.237.1663040421013; Mon, 12 Sep 2022 20:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663040421; cv=none; d=google.com; s=arc-20160816; b=DrpyhlkFNWMc31sxHS6gxpZZeYGyJwGmhVAc8LUPlb9crjvow1B/kG9pAQWw0se/zh 8tU3Rv3vVAkElTf7i60Z5GxaAEz4pcr6I3KcVhZWa4+AW/Zk7HqZ6FHJSYJSMmkR43/X b0j4meW3cwrCyH4pv+q5bAZGbskXKGx3mC/dvMqeX9I3OuRBcKLZb3xy/Wlo8fARQgt7 Omelj3GGeR48e6GIuUt+BvoJWXEBQtPPXkjKWbHO57gkW/AP8Yali5O2cM0Lyz/Tqr+x HnoS9q5N1r9JcMuo7h47phagECaZdI9ycigATBvbjI6SETheiOiw58ptbWTIiBmuLEuF 5QcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2zSinkGzMJsKNj52CE57mSSwA4a3PI8mrZmk9ZGXZm8=; b=fgcAVSb8kQDBKR3EeGS5ZezYJB3u7gkh9LPsxglNftGnKl9Rp5sfjDZRzBQttqWla6 oKQu1hJPEdtynuzXpYVWFxE1070ZyIScb+ySz+iyVfPMmBMyQs8JqctcKZP+zVn/Po1G 9/yQUXwbKBf5Zwd42XJ/duqffUYd8uyE7SzCMTDZMe6l1IKyaNXmpKXbEX7qEXmeYQ1P ZHD+PtM3Zn0Zd1TkcblqevhhPwIibjD6qnV4LFpfgW2kmSJSqVThgDByCc/PM1oiU1KI X/9achtUmjUePKNsk504LGtFGIpem54Uhlzll0RBNo787kpD8zVYDtFmGEOPzqBVr3lg ICVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb3-20020a1709071c8300b0077c1b2f8299si6411377ejc.819.2022.09.12.20.39.55; Mon, 12 Sep 2022 20:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbiIMDQy (ORCPT + 99 others); Mon, 12 Sep 2022 23:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbiIMDQt (ORCPT ); Mon, 12 Sep 2022 23:16:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B92E4543D4; Mon, 12 Sep 2022 20:16:48 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MRT6p6NRNzlVmW; Tue, 13 Sep 2022 11:12:50 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 13 Sep 2022 11:16:47 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 13 Sep 2022 11:16:46 +0800 From: Yang Yingliang To: , CC: , Subject: [PATCH -next] clk: bulk: Use dev_err_probe() helper in __clk_bulk_get() Date: Tue, 13 Sep 2022 11:24:03 +0800 Message-ID: <20220913032403.1007902-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dev_err() can be replace with dev_err_probe() which will check if error code is -EPROBE_DEFER. Signed-off-by: Yang Yingliang --- drivers/clk/clk-bulk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-bulk.c b/drivers/clk/clk-bulk.c index e9e16425c739..826b3ff99433 100644 --- a/drivers/clk/clk-bulk.c +++ b/drivers/clk/clk-bulk.c @@ -96,9 +96,9 @@ static int __clk_bulk_get(struct device *dev, int num_clks, if (ret == -ENOENT && optional) continue; - if (ret != -EPROBE_DEFER) - dev_err(dev, "Failed to get clk '%s': %d\n", - clks[i].id, ret); + dev_err_probe(dev, ret, + "Failed to get clk '%s'\n", + clks[i].id); goto err; } } -- 2.25.1