From: Florian Fainelli Date: Thu, 5 Mar 2015 20:35:06 +0000 (-0800) Subject: net: dsa: split dsa_switch_setup into two functions X-Git-Tag: omap-for-v4.2/o2_dc~131^2~331^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df197195a5248;p=pandora-kernel.git net: dsa: split dsa_switch_setup into two functions Split the part of dsa_switch_setup() which is responsible for allocating and initializing a 'struct dsa_switch' and the part which is doing a given switch device setup and slave network device creation. This is a preliminary change to allow a separate caller of dsa_switch_setup_one() which may have externally initialized the dsa_switch structure, outside of dsa_switch_setup(). Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed