Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321987
b: refs/heads/master
c: 137bc99
h: refs/heads/master
i:
  321985: 8b98ad2
  321983: a97139e
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Aug 15, 2012
1 parent 4048a5c commit 8cd40f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 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: f37c54b6a6c56489221d42ff27305e4f8098e34b
refs/heads/master: 137bc99ff30aa1d9bf556ee9c8ba788a8ec0f595
4 changes: 3 additions & 1 deletion trunk/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev)

new_bus->phy_mask = ~0;
new_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
if (!new_bus->irq)
if (!new_bus->irq) {
ret = -ENOMEM;
goto out_unmap_regs;
}

new_bus->parent = &ofdev->dev;
dev_set_drvdata(&ofdev->dev, new_bus);
Expand Down
8 changes: 6 additions & 2 deletions trunk/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev)
snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start);

fec->fecp = ioremap(res.start, resource_size(&res));
if (!fec->fecp)
if (!fec->fecp) {
ret = -ENOMEM;
goto out_fec;
}

if (get_bus_freq) {
clock = get_bus_freq(ofdev->dev.of_node);
Expand Down Expand Up @@ -172,8 +174,10 @@ static int __devinit fs_enet_mdio_probe(struct platform_device *ofdev)

new_bus->phy_mask = ~0;
new_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
if (!new_bus->irq)
if (!new_bus->irq) {
ret = -ENOMEM;
goto out_unmap_regs;
}

new_bus->parent = &ofdev->dev;
dev_set_drvdata(&ofdev->dev, new_bus);
Expand Down

0 comments on commit 8cd40f3

Please sign in to comment.