Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368821
b: refs/heads/master
c: 6c5f780
h: refs/heads/master
i:
  368819: 01f8643
v: v3
  • Loading branch information
Guenter Roeck authored and David S. Miller committed Apr 2, 2013
1 parent f8f8dfb commit bffc89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 509070437d15ed06c3b0aa674661adc2906b83f2
refs/heads/master: 6c5f7808efd7efc27be0f3c102f2a631ad6f038c
19 changes: 1 addition & 18 deletions trunk/drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ static void fec_get_mac(struct net_device *ndev)
*/
iap = macaddr;

#ifdef CONFIG_OF
/*
* 2) from device tree data
*/
Expand All @@ -925,7 +924,6 @@ static void fec_get_mac(struct net_device *ndev)
iap = (unsigned char *) mac;
}
}
#endif

/*
* 3) from flash or fuse (via platform data)
Expand Down Expand Up @@ -1679,16 +1677,6 @@ static int fec_enet_init(struct net_device *ndev)
}

#ifdef CONFIG_OF
static int fec_get_phy_mode_dt(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;

if (np)
return of_get_phy_mode(np);

return -ENODEV;
}

static void fec_reset_phy(struct platform_device *pdev)
{
int err, phy_reset;
Expand Down Expand Up @@ -1717,11 +1705,6 @@ static void fec_reset_phy(struct platform_device *pdev)
gpio_set_value(phy_reset, 1);
}
#else /* CONFIG_OF */
static int fec_get_phy_mode_dt(struct platform_device *pdev)
{
return -ENODEV;
}

static void fec_reset_phy(struct platform_device *pdev)
{
/*
Expand Down Expand Up @@ -1780,7 +1763,7 @@ fec_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, ndev);

ret = fec_get_phy_mode_dt(pdev);
ret = of_get_phy_mode(pdev->dev.of_node);
if (ret < 0) {
pdata = pdev->dev.platform_data;
if (pdata)
Expand Down

0 comments on commit bffc89d

Please sign in to comment.