]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-pl030.c: use devm_kzalloc() instead of kmalloc()
authorSangjung Woo <sangjung.woo@samsung.com>
Tue, 5 Nov 2013 05:57:25 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:25 +0000 (16:57 +1100)
commit207f46b48526b16db081de6592f58a8dffda6716
tree29e5a161a11723c6c8f8835ae40905c6d0247684
parent31ebb673299cf1cd130c24e29c18da93b5dbf13d
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>
drivers/rtc/rtc-pl030.c