net: dsa: switch to devm_ calls and remove kfree calls
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:37 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:09 +0000 (04:56 -0700)
commitd4ac35d6ed82e6c96ed5c016ea46fad31294fa7a
tree8b4ec5226bd82050a1ad66aef2bf751b0e326049
parentcbc5d90b378cd255ffedeb12f5affe243230d47e
net: dsa: switch to devm_ calls and remove kfree calls

Now the kfree calls exists in the the remove functions, remove them in all
places except the of_probe functions and replace allocation calls
with their devm_ counterparts.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c