[PATCH v2 2/2] net: mv643xx_eth: use managed devm_kzalloc

2013-04-11 Thread Sebastian Hesselbarth
This patch moves shared private data kzalloc to managed devm_kzalloc and cleans now unneccessary kfree and error handling. Signed-off-by: Sebastian Hesselbarth --- Changes from v1: - replaced EADDRNOTAVAIL with ENOMEM on failing ioremap (Reported by Sergei Shtylyov) Cc: Grant Likely Cc: Rob

[PATCH v2 2/2] net: mv643xx_eth: use managed devm_kzalloc

2013-04-11 Thread Sebastian Hesselbarth
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.hesselba...@gmail.com --- Changes from v1: - replaced EADDRNOTAVAIL with ENOMEM on failing ioremap (Reported by Sergei