Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195179
b: refs/heads/master
c: 08d18f3
h: refs/heads/master
i:
  195177: 2a2c105
  195175: 3480f99
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed May 18, 2010
1 parent 1f5e17d commit 4d974cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: a2f79227138c71e08627af5f8961197364edbc98
refs/heads/master: 08d18f3b62b4c05731a09eca2b432842a0a18da5
6 changes: 4 additions & 2 deletions trunk/drivers/net/fsl_pq_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,17 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev,
int tbiaddr = -1;
const u32 *addrp;
u64 addr = 0, size = 0;
int err = 0;
int err;

priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;

new_bus = mdiobus_alloc();
if (NULL == new_bus)
if (!new_bus) {
err = -ENOMEM;
goto err_free_priv;
}

new_bus->name = "Freescale PowerQUICC MII Bus",
new_bus->read = &fsl_pq_mdio_read,
Expand Down

0 comments on commit 4d974cc

Please sign in to comment.