]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Make it a real platform device driver
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 18 Aug 2016 22:30:14 +0000 (15:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 00:15:36 +0000 (17:15 -0700)
commitc2bf8725e741636f9018e1835a8b87002ac194f9
tree0ddb59520c731a0940d9de4a92cffc90b2296d38
parentbedbadc594c90df423e6c53adce863d7924c3939
net: dsa: bcm_sf2: Make it a real platform device driver

The Broadcom Starfighter 2 switch driver should be a proper platform
driver, now that the DSA code has been updated to allow that, register a
switch device, feed it with the proper configuration data coming from
Device Tree and register our switch device with DSA.

The bulk of the changes consist in moving what bcm_sf2_sw_setup() did
into the platform driver probe function.

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