net: fec: add phy-reset-gpios PROBE_DEFER check
authorFugang Duan <fugang.duan@nxp.com>
Tue, 11 Apr 2017 11:13:06 +0000 (19:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Apr 2017 18:36:27 +0000 (14:36 -0400)
commit9269e5560b261eb9ee157497890dc0948db76cf8
tree88d62cd7189d08b34691143efcb5848e8d9f91de
parent949201286fa4a481d8302f8b886ca565039bafcd
net: fec: add phy-reset-gpios PROBE_DEFER check

Many boards use i2c/spi expander gpio as phy-reset-gpios and these
gpios maybe registered after fec port, driver should check the return
value of .of_get_named_gpio().

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c