From: Florian Fainelli Date: Mon, 21 Jul 2014 22:29:27 +0000 (-0700) Subject: net: bcmgenet: fix bcmgenet_wol_resume X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~117^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3c1e7996c1f99ab96b7d499d9d90072147909e;p=pandora-kernel.git net: bcmgenet: fix bcmgenet_wol_resume bcmgenet_wol_resume() will create an unbalanced clock state for the wol_clk clock pointer since everywhere else in the code, we always call clk_prepare_enable() and clk_disable_unprepare(). This function also calls init_umac() which is neither correct nor necessary since bcmgenet_resume() and bcmgenet_open() already does that. Finally calling bcmgenet_wol_resume() in bcmgenet_open() is not correct, since the interface would not have been able to put us in Wake-on-LAN mode if it was not UP before. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed