net: mv643xx_eth: use managed devm_kzalloc
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 10 Apr 2013 23:29:34 +0000 (23:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 20:19:39 +0000 (16:19 -0400)
commit727f957a3c24c97e228337e876c6c4b2733bdca3
tree078c585cddcc26654410a054a5b1aad36fc489f8
parent209224862cabf7a871d680c448148ef6376bf98b
net: mv643xx_eth: use managed devm_kzalloc

This patch moves shared private data kzalloc to managed devm_kzalloc and
cleans now unneccessary kfree and error handling.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c