]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sh-rtc: Handle rtc_device_register() failure properly.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 7 Nov 2007 05:58:09 +0000 (14:58 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 7 Nov 2007 05:58:09 +0000 (14:58 +0900)
commit9669ce5691d1b14180a0f5a56196d97afb7dbd39
tree9ce766a017cbf18a408f8341c4c1e24a2d711aaa
parentb80784f7cd8483ca300797ddc1aa2c96f9ab5674
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>
drivers/rtc/rtc-sh.c