Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112218
b: refs/heads/master
c: ec2a565
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and David S. Miller committed Oct 9, 2008
1 parent aeef74a commit cf36976
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 724f88057609c00d6e973c3a7e0eb72f8eec2da9
refs/heads/master: ec2a5652ea53c102306f08cdf516f98e32bd4b61
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/pasemi/gpio_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ static int __devinit gpio_mdio_probe(struct of_device *ofdev,
if (!priv)
goto out;

new_bus = kzalloc(sizeof(struct mii_bus), GFP_KERNEL);
new_bus = mdiobus_alloc();

if (!new_bus)
goto out_free_priv;
Expand Down Expand Up @@ -306,7 +306,7 @@ static int gpio_mdio_remove(struct of_device *dev)

kfree(bus->priv);
bus->priv = NULL;
kfree(bus);
mdiobus_free(bus);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/phy/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ static int fixed_phy_update_regs(struct fixed_phy *fp)

static int fixed_mdio_read(struct mii_bus *bus, int phy_id, int reg_num)
{
struct fixed_mdio_bus *fmb = container_of(bus, struct fixed_mdio_bus,
mii_bus);
struct fixed_mdio_bus *fmb = bus->priv;
struct fixed_phy *fp;

if (reg_num >= MII_REGS_NUM)
Expand Down Expand Up @@ -221,6 +220,7 @@ static int __init fixed_mdio_bus_init(void)

snprintf(fmb->mii_bus->id, MII_BUS_ID_SIZE, "0");
fmb->mii_bus->name = "Fixed MDIO Bus";
fmb->mii_bus->priv = fmb;
fmb->mii_bus->parent = &pdev->dev;
fmb->mii_bus->read = &fixed_mdio_read;
fmb->mii_bus->write = &fixed_mdio_write;
Expand Down

0 comments on commit cf36976

Please sign in to comment.