net: ethernet: dm9000: Handle -EPROBE_DEFER in dm9000_parse_dt()
authorPaul Cercueil <paul@crapouillou.net>
Sun, 16 Feb 2020 19:39:43 +0000 (16:39 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 04:01:43 +0000 (20:01 -0800)
commit9a6a0dea16177ccaecc116f560232e63bec115f1
tree145fb9f87bdb07da52cdd6bb365430d5d97e0eec
parentd2f273f0a9205257b91af1d3d461ee29688c2f24
net: ethernet: dm9000: Handle -EPROBE_DEFER in dm9000_parse_dt()

The call to of_get_mac_address() can return -EPROBE_DEFER, for instance
when the MAC address is read from a NVMEM driver that did not probe yet.

Cc: H. Nikolaus Schaller <hns@goldelico.com>
Cc: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c