]> git.baikalelectronics.ru Git - kernel.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)
commitfb94d8f27fa8bd1491923b63152a38b296623b71
tree3c81a0128d17b5ccc5aaf6fb6b8c34f830cd3bdb
parent07eee1f7f42ceb4f40b21e49866a1949877d92c5
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