Lines Matching defs:new_bus
151 struct mii_bus *new_bus;
161 new_bus = alloc_mdio_bitbang(&bitbang->ctrl);
162 if (!new_bus)
165 new_bus->name = "CPM2 Bitbanged MII",
167 ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node);
171 new_bus->phy_mask = ~0;
172 new_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
173 if (!new_bus->irq)
176 new_bus->parent = &ofdev->dev;
177 dev_set_drvdata(&ofdev->dev, new_bus);
179 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);
187 kfree(new_bus->irq);
191 free_mdio_bitbang(new_bus);