Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168521
b: refs/heads/master
c: 58459a4
h: refs/heads/master
i:
  168519: 89c8d63
v: v3
  • Loading branch information
Roel Kluin authored and Kumar Gala committed Nov 5, 2009
1 parent 4daf41f commit da4c8f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 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: cb5485a0b99b232c5c7c4c21e2346f8ab7ef555d
refs/heads/master: 58459a4e19e107d793a58a46780def2cea12a391
15 changes: 14 additions & 1 deletion trunk/arch/powerpc/platforms/82xx/ep8248e.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,25 @@ static int __devinit ep8248e_mdio_probe(struct of_device *ofdev,
return -ENOMEM;

bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
if (bus->irq == NULL) {
ret = -ENOMEM;
goto err_free_bus;
}

bus->name = "ep8248e-mdio-bitbang";
bus->parent = &ofdev->dev;
snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start);

return of_mdiobus_register(bus, ofdev->node);
ret = of_mdiobus_register(bus, ofdev->node);
if (ret)
goto err_free_irq;

return 0;
err_free_irq:
kfree(bus->irq);
err_free_bus:
free_mdio_bitbang(bus);
return ret;
}

static int ep8248e_mdio_remove(struct of_device *ofdev)
Expand Down

0 comments on commit da4c8f6

Please sign in to comment.