Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303319
b: refs/heads/master
c: b2bccee
h: refs/heads/master
i:
  303317: 4c4213d
  303315: 2c7f05f
  303311: f30d731
v: v3
  • Loading branch information
Shawn Guo committed May 12, 2012
1 parent 30f85eb commit 6a59832
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fed78ce4c6af1c0d516ae6f4cdc2bb8dbbca8c22
refs/heads/master: b2bccee1793ebcf47272fc6556e741a9fba896c7
9 changes: 9 additions & 0 deletions trunk/drivers/net/ethernet/freescale/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/of_net.h>
#include <linux/pinctrl/consumer.h>

#include <asm/cacheflush.h>

Expand Down Expand Up @@ -1542,6 +1543,7 @@ fec_probe(struct platform_device *pdev)
struct resource *r;
const struct of_device_id *of_id;
static int dev_id;
struct pinctrl *pinctrl;

of_id = of_match_device(fec_dt_ids, &pdev->dev);
if (of_id)
Expand Down Expand Up @@ -1609,6 +1611,12 @@ fec_probe(struct platform_device *pdev)
}
}

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(pinctrl);
goto failed_pin;
}

fep->clk = clk_get(&pdev->dev, NULL);
if (IS_ERR(fep->clk)) {
ret = PTR_ERR(fep->clk);
Expand Down Expand Up @@ -1639,6 +1647,7 @@ fec_probe(struct platform_device *pdev)
failed_init:
clk_disable_unprepare(fep->clk);
clk_put(fep->clk);
failed_pin:
failed_clk:
for (i = 0; i < FEC_IRQ_NUM; i++) {
irq = platform_get_irq(pdev, i);
Expand Down

0 comments on commit 6a59832

Please sign in to comment.