net: dsa: bcm_sf2: Use device managed helpers
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 18 Aug 2016 22:30:15 +0000 (15:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 00:15:36 +0000 (17:15 -0700)
commit4bd11675cf0d39e912b55e4d8fa91c85a82d946a
tree988a0dc09ee2c4ff4b085e1325e776e3818259f5
parentd9338023fb8e60aa09014034a993f8ddc86c65fa
net: dsa: bcm_sf2: Use device managed helpers

Now that we have converted the drivers into a proper platform device
driver, we can use the device managed helper functions to simplify the
error paths a bit wrt. register resources and IRQs.

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