Lines Matching defs:new_bus
108 struct mii_bus *new_bus;
113 new_bus = mdiobus_alloc();
114 if (!new_bus)
121 new_bus->priv = fec;
122 new_bus->name = "FEC MII Bus";
123 new_bus->read = &fs_enet_fec_mii_read;
124 new_bus->write = &fs_enet_fec_mii_write;
125 new_bus->reset = &fs_enet_fec_mii_reset;
131 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start);
167 new_bus->phy_mask = ~0;
168 new_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
169 if (!new_bus->irq)
172 new_bus->parent = &ofdev->dev;
173 dev_set_drvdata(&ofdev->dev, new_bus);
175 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);
183 kfree(new_bus->irq);
190 mdiobus_free(new_bus);