Skip to content
Snippets Groups Projects
Commit 9ed39bf9 authored by Devendra Naga's avatar Devendra Naga Committed by Linus Torvalds
Browse files

rtc: rtc-davinci: return correct error code if rtc_device_register() fails


rtc_device_register() returns a pointer containing error code in case
of error.  Use that in the error return.

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Miguel Aguilar <miguel.aguilar@ridgerun.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 32c4746c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment