From: Lars-Peter Clausen Date: Thu, 18 Oct 2012 14:43:00 +0000 (+0100) Subject: iio: at91_adc: Use devm_kcalloc to allocate arrays X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1089^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45259859492812c8b700ae1d157be01a8d2babfe;p=pandora-kernel.git iio: at91_adc: Use devm_kcalloc to allocate arrays Use dev_kcalloc instead of devm_kzalloc to allocate arrays since it is semantically more appropriate. While we are at it the patch also fixes the following coccinelle warning: drivers/iio/adc/at91_adc.c:277:25-31: ERROR: application of sizeof to pointer Signed-off-by: Lars-Peter Clausen Acked-By: Maxime Ripard Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed