From: Himangi Saraogi Date: Wed, 23 Jul 2014 21:15:40 +0000 (+0530) Subject: misc: bh1780: Introduce the use of devm_kzalloc X-Git-Tag: omap-for-v3.17/fixes-against-rc2~168^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b9d1f0b7a18b86db0ac1de628fa91c0994fefbe;p=pandora-kernel.git misc: bh1780: Introduce the use of devm_kzalloc This patch introduces the use of devm_kzalloc and does away with the kfrees in the probe and remove functions. A label and the kfree being called on the return path of failure on i2c_check_functionality, which is completely unnecessary and removed. The NULL assignment of ddata is no longer required is also done away with. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed