Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319886
b: refs/heads/master
c: 2b1463d
h: refs/heads/master
v: v3
  • Loading branch information
Viresh Kumar authored and Linus Torvalds committed Jul 31, 2012
1 parent 7838bdd commit 7850e85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: d14fb1e93086ec1acec34d5e17c989fa528c65e5
refs/heads/master: 2b1463ddde35a720de2fb4013057396e7f8011f0
8 changes: 0 additions & 8 deletions trunk/drivers/net/can/c_can/c_can_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)
const struct platform_device_id *id;
struct resource *mem;
int irq;
#ifdef CONFIG_HAVE_CLK
struct clk *clk;

/* get the appropriate clk */
Expand All @@ -84,7 +83,6 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)
ret = -ENODEV;
goto exit;
}
#endif

/* get the platform data */
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down Expand Up @@ -145,10 +143,8 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)

dev->irq = irq;
priv->base = addr;
#ifdef CONFIG_HAVE_CLK
priv->can.clock.freq = clk_get_rate(clk);
priv->priv = clk;
#endif

platform_set_drvdata(pdev, dev);
SET_NETDEV_DEV(dev, &pdev->dev);
Expand All @@ -172,10 +168,8 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)
exit_release_mem:
release_mem_region(mem->start, resource_size(mem));
exit_free_clk:
#ifdef CONFIG_HAVE_CLK
clk_put(clk);
exit:
#endif
dev_err(&pdev->dev, "probe failed\n");

return ret;
Expand All @@ -196,9 +190,7 @@ static int __devexit c_can_plat_remove(struct platform_device *pdev)
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(mem->start, resource_size(mem));

#ifdef CONFIG_HAVE_CLK
clk_put(priv->priv);
#endif

return 0;
}
Expand Down

0 comments on commit 7850e85

Please sign in to comment.