Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159313
b: refs/heads/master
c: d76c626
h: refs/heads/master
i:
  159311: 1a0ca14
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Aug 5, 2009
1 parent 76f8c41 commit 0ebd354
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 36cbd3dcc10384f813ec0814255f576c84f2bcd4
refs/heads/master: d76c626b922e279c7764ec46fb1b9bbd41538f35
6 changes: 3 additions & 3 deletions trunk/drivers/net/cpmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ static int external_switch;
static int __devinit cpmac_probe(struct platform_device *pdev)
{
int rc, phy_id;
char *mdio_bus_id = "0";
char mdio_bus_id[BUS_ID_SIZE];
struct resource *mem;
struct cpmac_priv *priv;
struct net_device *dev;
Expand All @@ -1127,7 +1127,7 @@ static int __devinit cpmac_probe(struct platform_device *pdev)

if (phy_id == PHY_MAX_ADDR) {
if (external_switch || dumb_switch) {
mdio_bus_id = 0; /* fixed phys bus */
strncpy(mdio_bus_id, "0", BUS_ID_SIZE); /* fixed phys bus */
phy_id = pdev->id;
} else {
dev_err(&pdev->dev, "no PHY present\n");
Expand Down Expand Up @@ -1254,7 +1254,7 @@ int __devinit cpmac_init(void)
}

cpmac_mii->phy_mask = ~(mask | 0x80000000);
snprintf(cpmac_mii->id, MII_BUS_ID_SIZE, "0");
snprintf(cpmac_mii->id, MII_BUS_ID_SIZE, "1");

res = mdiobus_register(cpmac_mii);
if (res)
Expand Down

0 comments on commit 0ebd354

Please sign in to comment.