]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91ce46fbdc816c7a5ed126040ec089452a3d6e67
treeafaac208fbd83543c3166a6c21acb2452e98f96f
parent33a1ec401b22f1dc044d5fef03d80fa1ace23a9e
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