net: fman_memac: use pcs-lynx's check for fwnode availability
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 7 Jun 2023 11:59:04 +0000 (12:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Jun 2023 02:19:50 +0000 (19:19 -0700)
commit32fc30353f7c4d5370acf6ef8fb3be9363dce3c2
treeb5bab0b67e74e1a595f59168827808217c6d2d9f
parent8c1d0b339d675366ad02fe8c571cdeed0dd28435
net: fman_memac: use pcs-lynx's check for fwnode availability

Use pcs-lynx's check rather than our own when determining if the device
is available. This fixes a bug where the reference gained by
of_parse_phandle() is not dropped if the device is not available.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fman/fman_memac.c