Skip to content
Commit 29dd0dae authored by Paul Mundt's avatar Paul Mundt
Browse files

rtc: sh-rtc: Handle rtc_device_register() failure properly.



Currently if rtc_device_register() fails we have an IS_ERR() on
the wrong pointer, which causes this to always be skipped. Fix
this up to actually check the right pointer. The return value
was always correct, even though the check was wrong.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9c88b6ba
Loading
Loading
Loading
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