Lines Matching defs:new_bus
224 struct mii_bus *new_bus;
234 new_bus = mdiobus_alloc();
236 if (!new_bus)
239 new_bus->name = "pasemi gpio mdio bus";
240 new_bus->read = &gpio_mdio_read;
241 new_bus->write = &gpio_mdio_write;
242 new_bus->reset = &gpio_mdio_reset;
245 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", *prop);
246 new_bus->priv = priv;
248 new_bus->irq = priv->mdio_irqs;
256 new_bus->parent = dev;
257 dev_set_drvdata(dev, new_bus);
259 err = of_mdiobus_register(new_bus, np);
263 new_bus->name, err);
270 kfree(new_bus);