diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-12-18 01:02:41 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 02:15:21 +0100 |
commit | f288cf416ec22de3c5bc18148b6f7620aa32409b (patch) | |
tree | afaac208fbd83543c3166a6c21acb2452e98f96f /drivers/rtc/rtc-pcf8523.c | |
parent | rtc: rtc-davinci: return correct error code if rtc_device_register() fails (diff) | |
download | linux-f288cf416ec22de3c5bc18148b6f7620aa32409b.tar.xz linux-f288cf416ec22de3c5bc18148b6f7620aa32409b.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions