From: Sriram Date: Thu, 7 Jan 2010 00:22:37 +0000 (+0000) Subject: TI DaVinci EMAC: Handle emac module clock correctly. X-Git-Tag: v2.6.33-rc4~10^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ca518b64b4b5865b677f292322e893fa89997d4;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed