mfd: jz4740-adc: Use devm_kzalloc
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 24 Nov 2012 11:14:38 +0000 (06:14 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Nov 2012 11:20:49 +0000 (12:20 +0100)
commit931cbaf352e06b649a5033af8dd17eed53efc2c7
treee6a30ee01c873e293b9889133a8b297461d4779d
parent32533983858f5f6899f39d54230d9640ef4547cd
mfd: jz4740-adc: Use devm_kzalloc

Use devm_kzalloc and remove the error path free'ing and unload free'ing
as the devm resource functions free them.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/jz4740-adc.c