summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1374.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-07 14:58:09 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-11-07 14:58:09 +0900
commit29dd0dae507f73f305aaea765f975eafd1fa5493 (patch)
tree9ce766a017cbf18a408f8341c4c1e24a2d711aaa /drivers/rtc/rtc-ds1374.c
parent9c88b6ba1c72a8bba30347b63f1531f2d9c2a309 (diff)
downloadlinux-29dd0dae507f73f305aaea765f975eafd1fa5493.tar.bz2
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: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1374.c')
0 files changed, 0 insertions, 0 deletions