]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-wm831x.c: convert to devm_kzalloc()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 8 Dec 2011 04:42:32 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:25 +0000 (17:43 +1100)
commit725d4e1eb4eb5426de8fb47d8b9df9b38a4cf040
tree673385fe577c334be46daed4c2f637fed0800a8a
parent41c11dee3b0f5472f38c8f1f3508518de5f7e3f6
drivers/rtc/rtc-wm831x.c: convert to devm_kzalloc()

Marginally less code and eliminate the possibility of memory leaks.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-wm831x.c