From patchwork Thu Sep 15 11:42:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 12977263 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED0D6ECAAA1 for ; Thu, 15 Sep 2022 11:35:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbiIOLf0 (ORCPT ); Thu, 15 Sep 2022 07:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiIOLfZ (ORCPT ); Thu, 15 Sep 2022 07:35:25 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3566015A29 for ; Thu, 15 Sep 2022 04:35:23 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MSw563nJ9z14QNF; Thu, 15 Sep 2022 19:31:22 +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; Thu, 15 Sep 2022 19:35:21 +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; Thu, 15 Sep 2022 19:35:20 +0800 From: Yang Yingliang To: CC: , , , , , Subject: [PATCH -next 0/7] net: drivers: Switch to use dev_err_probe() helper Date: Thu, 15 Sep 2022 19:42:07 +0800 Message-ID: <20220915114214.3145427-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In the probe path, dev_err() can be replace with dev_err_probe() which will check if error code is -EPROBE_DEFER. It will print error code in a human readable way and simplify the code. Yang Yingliang (7): net: ethernet: ti: am65-cpts: Switch to use dev_err_probe() helper net: ethernet: ti: cpsw: Switch to use dev_err_probe() helper net: ethernet: ti: cpsw_new: Switch to use dev_err_probe() helper net: dsa: lantiq: Switch to use dev_err_probe() helper net: ibm: emac: Switch to use dev_err_probe() helper net: stmmac: dwc-qos: Switch to use dev_err_probe() helper net: ll_temac: Switch to use dev_err_probe() helper drivers/net/dsa/lantiq_gswip.c | 8 +++----- drivers/net/ethernet/ibm/emac/core.c | 8 +++----- .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 4 +--- drivers/net/ethernet/ti/am65-cpts.c | 7 ++----- drivers/net/ethernet/ti/cpsw.c | 3 +-- drivers/net/ethernet/ti/cpsw_new.c | 5 ++--- drivers/net/ethernet/xilinx/ll_temac_main.c | 16 ++++++---------- 7 files changed, 18 insertions(+), 33 deletions(-)