]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-pl030.c: use devm_kzalloc() instead of kmalloc()
authorSangjung Woo <sangjung.woo@samsung.com>
Tue, 12 Nov 2013 23:11:02 +0000 (15:11 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:31 +0000 (12:09 +0900)
commit5fa73081d9ffacb4cbfddec297ff0283c2482ee7
tree11e81d53df4782cdf7002853d21cdf918c1deb6f
parent1e18245eae7cfa8a897d9a9bc63b622daf323f49
drivers/rtc/rtc-pl030.c: use devm_kzalloc() instead of kmalloc()

In order to be free automatically and make the cleanup paths more simple,
use devm_kzalloc() instead of kmalloc().

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Cc: Joe Perches <joe@perches.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pl030.c