From: Srinivas Kandagatla Date: Thu, 16 Jan 2014 10:52:14 +0000 (+0000) Subject: net: stmmac: move hardware setup for stmmac_open to new function X-Git-Tag: v3.14-rc1~94^2~145^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523f11b5d4fd72efb72b04cd7006bfd1d1d4f341;p=pandora-kernel.git net: stmmac: move hardware setup for stmmac_open to new function This patch moves hardware setup part of the code in stmmac_open to a new function stmmac_hw_setup, the reason for doing this is to make hw initialization independent function so that PM functions can re-use it to re-initialize the IP after returning from low power state. This will also avoid code duplication across stmmac_resume/restore and stmmac_open. Signed-off-by: Srinivas Kandagatla Acked-by: Giuseppe Cavallaro Signed-off-by: David S. Miller --- Reading git-diff-tree failed