rtc: rtc-davinci: use devm_kzalloc()
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 18 Dec 2012 00:02:41 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:21 +0000 (17:15 -0800)
commitf288cf416ec22de3c5bc18148b6f7620aa32409b
treeafaac208fbd83543c3166a6c21acb2452e98f96f
parent9ed39bf931cbd95b30755dcb1ad724fe05565c3f
rtc: rtc-davinci: use devm_kzalloc()

Use devm_kzalloc() and remove the error path free and the unload free as
devm functions take care of freeing resources.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Miguel Aguilar <miguel.aguilar@ridgerun.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-davinci.c