diff options
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hip04_eth.c')
| -rw-r--r-- | drivers/net/ethernet/hisilicon/hip04_eth.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 4606a7e4a6d1..3e9b6d543c77 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -211,7 +211,7 @@ struct hip04_priv {  #if defined(CONFIG_HI13X1_GMAC)  	void __iomem *sysctrl_base;  #endif -	int phy_mode; +	phy_interface_t phy_mode;  	int chan;  	unsigned int port;  	unsigned int group; @@ -961,10 +961,9 @@ static int hip04_mac_probe(struct platform_device *pdev)  		goto init_fail;  	} -	priv->phy_mode = of_get_phy_mode(node); -	if (priv->phy_mode < 0) { +	ret = of_get_phy_mode(node, &priv->phy_mode); +	if (ret) {  		dev_warn(d, "not find phy-mode\n"); -		ret = -EINVAL;  		goto init_fail;  	}  | 

