drivers: net: davinci_mdio: split reset function on init_clk and enable
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 24 Jun 2016 18:23:49 +0000 (21:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 12:57:19 +0000 (08:57 -0400)
commit28f0ccb9958f54d9f4e7ebcf09b400304d8ba7cb
tree4cdecd94e9a925f78c929c0c89ae09ee1c95b5f2
parenta01d7baa1f2e291b1b3d82d57ae41d2fd9d438c3
drivers: net: davinci_mdio: split reset function on init_clk and enable

The Davinci MDIO MDIO_CONTROL.CLKDIV can be calculated only once
during probe, hence split __davinci_mdio_reset() on
davinci_mdio_init_clk() and davinci_mdio_enable(). Initialize and
save CLKDIV in .probe(). Then just use saved value.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c