net: stmmac: platform: fix probe for ACPI devices
authorAjay Gupta <ajayg@nvidia.com>
Thu, 23 Jan 2020 01:16:35 +0000 (17:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:09:47 +0000 (10:09 +0100)
commitb9f0b2f634c0765999bec5547bc7a4ac08fda3ff
treeb761caf0693911560640f9794ffe29c203cce03d
parent623c8d5c74c69a41573da5a38bb59e8652113f56
net: stmmac: platform: fix probe for ACPI devices

Use generic device API to get phy mode to fix probe failure
with ACPI based devices.

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c