]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0239d697a51fa4cea19eb5486fd989e5049a4c97
tree78e6c5879364b6d5b254aa4205a5d9f3c034425f
parentbf02185a50c355bd70b591e9e0437ea41167f5d9
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: 740caea64bf2 ("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