]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit572e14f946262fbfe292297483917325523d1ab9
tree8b4ec5226bd82050a1ad66aef2bf751b0e326049
parent1915e0d9ffabe9641fe3a353c7065358eac0e331
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