Message ID | 684d670633e771b738725b082d88fdb773002f4a.1359232975.git.jason@lakedaemon.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 7048d7c..296beec 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -2955,7 +2955,10 @@ static int mv643xx_eth_probe(struct platform_device *pdev) */ mp->t_clk = 133000000; #if defined(CONFIG_HAVE_CLK) - mp->clk = clk_get(&pdev->dev, (pdev->id ? "1" : "0")); + if (pdev->dev.of_node) + mp->clk = of_clk_get(pdev->dev.of_node, 0); + else + mp->clk = clk_get(&pdev->dev, (pdev->id ? "1" : "0")); if (!IS_ERR(mp->clk)) { clk_prepare_enable(mp->clk); mp->t_clk = clk_get_rate(mp->clk);