mbox series

[-next,0/7] net: drivers: Switch to use dev_err_probe() helper

Message ID 20220915114214.3145427-1-yangyingliang@huawei.com (mailing list archive)
Headers show
Series net: drivers: Switch to use dev_err_probe() helper | expand

Message

Yang Yingliang Sept. 15, 2022, 11:42 a.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 21, 2022, 1:20 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 15 Sep 2022 19:42:07 +0800 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [-next,1/7] net: ethernet: ti: am65-cpts: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/e2baa12608d4
  - [-next,2/7] net: ethernet: ti: cpsw: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/102947f9bb92
  - [-next,3/7] net: ethernet: ti: cpsw_new: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/2c22e42edc8d
  - [-next,4/7] net: dsa: lantiq: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/d02bb8bef457
  - [-next,5/7] net: ibm: emac: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/b6dc230fba4b
  - [-next,6/7] net: stmmac: dwc-qos: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/c222cd27dd96
  - [-next,7/7] net: ll_temac: Switch to use dev_err_probe() helper
    https://git.kernel.org/netdev/net-next/c/75ae8c284c00

You are awesome, thank you!