]> git.baikalelectronics.ru Git - kernel.git/commit
TI DaVinci EMAC: Handle emac module clock correctly.
authorSriram <srk@ti.com>
Thu, 7 Jan 2010 00:22:37 +0000 (00:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jan 2010 01:27:31 +0000 (17:27 -0800)
commit29748421fa0728f1ae9c1309c782838563c7945e
treef59d31d88810e021e66e073adb26d766f6ec204d
parent3040f7266c7a2bdcdd420ae963edf06843d40964
TI DaVinci EMAC: Handle emac module clock correctly.

In the driver probe function the emac module clock needs to
be enabled before calling register_netdev(). As soon as the
device is registered the driver get_stats function can be invoked
by the core - the module clock must be switched on to be able to
read from stats registers. Also explicitly call matching clk_disable
for failure conditions in probe function.

Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c