struct phy_device *phydev;
struct mii_dev *bus;
void __iomem *iobase;
- struct clk clk;
+ struct clk_bulk clks;
struct gpio_desc reset_gpio;
};
iobase = map_physmem(pdata->iobase, 0x1000, MAP_NOCACHE);
eth->iobase = iobase;
- ret = clk_get_by_index(dev, 0, ð->clk);
+ ret = clk_get_bulk(dev, ð->clks);
if (ret < 0)
goto err_mdio_alloc;
eth->bus = miiphy_get_dev_by_name(dev->name);
/* Bring up PHY */
- ret = clk_enable(ð->clk);
+ ret = clk_enable_bulk(ð->clks);
if (ret)
goto err_mdio_register;
return 0;
err_mdio_reset:
- clk_disable(ð->clk);
+ clk_release_bulk(ð->clks);
err_mdio_register:
mdio_free(mdiodev);
err_mdio_alloc:
{
struct ravb_priv *eth = dev_get_priv(dev);
- clk_disable(ð->clk);
+ clk_release_bulk(ð->clks);
free(eth->phydev);
mdio_unregister(eth->bus);