]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-mac: do not check for both child and parent DTS nodes
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 25 Sep 2020 14:44:19 +0000 (17:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Sep 2020 00:10:27 +0000 (17:10 -0700)
commit098efc1da757805d33d6866e8c956636877a372a
treeeda0ea3218eb4342f29a8078fa9764287b4c5e87
parent23cae65538fdd203cf17e1b61518029c6319d9e1
dpaa2-mac: do not check for both child and parent DTS nodes

There is no need to check if both the MDIO controller node and its
child node, the PCS device, are available since there is no chance that
the child node would be enabled when the parent it's not.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c