OSDN Git Service

net: ethernet: emac: Fix phy mode type
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 Nov 2019 17:53:23 +0000 (18:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:21:49 +0000 (18:21 -0800)
commitf92186177620c9bcc4fc314d5c3ec79f32153348
tree78e6c5879364b6d5b254aa4205a5d9f3c034425f
parent5ea4b122e7ed9aa921fe019a7a0649ba67919ecf
net: ethernet: emac: Fix phy mode type

Pass a phy_interface_t to of_get_phy_mode(), by changing the type of
phy_mode in the device structure. This then requires that
zmii_attach() is also changes, since it takes a pointer to phy_mode.

Fixes: 0c65b2b90d13 ("net: of_get_phy_mode: Change API to solve int/unit warnings")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/core.h
drivers/net/ethernet/ibm/emac/zmii.c
drivers/net/ethernet/ibm/emac/zmii.h