Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243241
b: refs/heads/master
c: b0052b0
h: refs/heads/master
i:
  243239: 26849f2
v: v3
  • Loading branch information
Marc Kleine-Budde authored and David S. Miller committed Mar 28, 2011
1 parent b5bd4f2 commit 35568df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: ee6f0988a69b3a81bcea0871418ecf5db332149c
refs/heads/master: b0052b088cf0cb688b4630c1d520c57276da71a5
9 changes: 5 additions & 4 deletions trunk/drivers/net/can/c_can/c_can_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)
void __iomem *addr;
struct net_device *dev;
struct c_can_priv *priv;
struct resource *mem, *irq;
struct resource *mem;
int irq;
#ifdef CONFIG_HAVE_CLK
struct clk *clk;

Expand All @@ -88,8 +89,8 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)

/* get the platform data */
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
if (!mem || (irq <= 0)) {
irq = platform_get_irq(pdev, 0);
if (!mem || irq <= 0) {
ret = -ENODEV;
goto exit_free_clk;
}
Expand Down Expand Up @@ -117,7 +118,7 @@ static int __devinit c_can_plat_probe(struct platform_device *pdev)

priv = netdev_priv(dev);

dev->irq = irq->start;
dev->irq = irq;
priv->regs = addr;
#ifdef CONFIG_HAVE_CLK
priv->can.clock.freq = clk_get_rate(clk);
Expand Down

0 comments on commit 35568df

Please sign in to comment.