]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: arc_emac: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 15 Sep 2021 14:57:41 +0000 (22:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2021 12:35:35 +0000 (13:35 +0100)
commit95b5fc03c189e4ea5c63785274cc0b77fcc3a818
tree3c81a0128d17b5ccc5aaf6fb6b8c34f830cd3bdb
parent5706383b30cfd511022b42d583d2196b5ec8f8a3
net: arc_emac: Make use of the helper function dev_err_probe()

When possible use dev_err_probe help to properly deal with the
PROBE_DEFER error, the benefit is that DEFER issue will be logged
in the devices_deferred debugfs file.
And using dev_err_probe() can reduce code size, and simplify the code.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_mdio.c