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)
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

Simple merge