rtc: rtc-sh: fix for period rtc interrupts.
authorJamie Lenehan <lenehan@twibble.org>
Thu, 7 Dec 2006 08:23:50 +0000 (17:23 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 Dec 2006 23:42:07 +0000 (08:42 +0900)
commit31ccb081ec6c7eedfd7e88a48365c67ce44ecb92
tree4aec69a007bb8097ca20364b0143d1af4660bd25
parent417d6b9edb5958c2cc76e8ef701ebe09a3152deb
rtc: rtc-sh: fix for period rtc interrupts.

When testing the per second interrupt support (RTC_UIE_ON/RTC_UIE_OFF)
of the new RTC system it would die in sh_rtc_interrupt due to a null
ptr dereference. The following gets it working correctly.

Signed-off-by: Jamie Lenehan <lenehan@twibble.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/rtc/rtc-sh.c