net: dsa: bcm_sf2: move GPHY enabling to its own function
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Feb 2015 19:40:41 +0000 (11:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:38:40 +0000 (22:38 -0800)
commitb083668c93e5bf889e6ec4761540be1accc3f1b1
tree17a7a133339559dd076e6c0a73da9ac9caff9513
parent3c09e92fb6b94b7597442c1f232a260c35b30698
net: dsa: bcm_sf2: move GPHY enabling to its own function

Move the code that touches the single GPHY register from
bcm_sf2_sw_resume() to a separate function since we will have to
enable/disable the GPHY from different locations, and we want the code
to be self-contained.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c