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: 0c65b2b90d
("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>
This commit is contained in:

committed by
David S. Miller

parent
5ea4b122e7
commit
f921861776
@@ -78,7 +78,8 @@ static inline u32 zmii_mode_mask(int mode, int input)
|
||||
}
|
||||
}
|
||||
|
||||
int zmii_attach(struct platform_device *ofdev, int input, int *mode)
|
||||
int zmii_attach(struct platform_device *ofdev, int input,
|
||||
phy_interface_t *mode)
|
||||
{
|
||||
struct zmii_instance *dev = platform_get_drvdata(ofdev);
|
||||
struct zmii_regs __iomem *p = dev->base;
|
||||
|
Reference in New Issue
Block a user