net: ag71xx: fix compile warnings
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 17 Dec 2019 06:51:45 +0000 (07:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2019 06:38:50 +0000 (22:38 -0800)
commit9d4b98af8a2eb2ddb7779f2929700b5c174e9cc9
treefaa533ad223e6c8a91fb9822727a6957268519d6
parent1f26c0d3d24125992ab0026b0dab16c08df947c7
net: ag71xx: fix compile warnings

drivers/net/ethernet/atheros/ag71xx.c: In function 'ag71xx_probe':
drivers/net/ethernet/atheros/ag71xx.c:1776:30: warning: passing argument 2 of
 'of_get_phy_mode' makes pointer from integer without a cast [-Wint-conversion]
In file included from drivers/net/ethernet/atheros/ag71xx.c:33:
./include/linux/of_net.h:15:69: note: expected 'phy_interface_t *'
 {aka 'enum <anonymous> *'} but argument is of type 'int'

Fixes: 0c65b2b90d13c1 ("net: of_get_phy_mode: Change API to solve int/unit warnings")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/ag71xx.c