mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
ax88796: use an unique MDIO bus name.
Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
71bc5d9406
commit
fa84e7201c
1 changed files with 2 additions and 1 deletions
|
@ -623,7 +623,8 @@ static int ax_mii_init(struct net_device *dev)
|
||||||
|
|
||||||
ax->mii_bus->name = "ax88796_mii_bus";
|
ax->mii_bus->name = "ax88796_mii_bus";
|
||||||
ax->mii_bus->parent = dev->dev.parent;
|
ax->mii_bus->parent = dev->dev.parent;
|
||||||
snprintf(ax->mii_bus->id, MII_BUS_ID_SIZE, "%x", pdev->id);
|
snprintf(ax->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
|
||||||
|
pdev->name, pdev->id);
|
||||||
|
|
||||||
ax->mii_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
|
ax->mii_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
|
||||||
if (!ax->mii_bus->irq) {
|
if (!ax->mii_bus->irq) {
|
||||||
|
|
Loading…
Reference in a new issue