]> git.baikalelectronics.ru Git - kernel.git/commit
rtc-m48t59 driver NO_IRQ mode fixup
authorMark Zhan <rongkai.zhan@windriver.com>
Tue, 31 Jul 2007 07:39:47 +0000 (00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:44 +0000 (15:39 -0700)
commit07c1bc034fab752e5bd3df6d6fcce9fa7f6f4825
tree808ded904316dc65e77e34666f01fe78957c79ef
parent69630f21bd414c2fbbdcae58eb2d6b079095b379
rtc-m48t59 driver NO_IRQ mode fixup

Since irq in m48t59_private struct is defined as 'unsigned int', which will
make the following if sentence to be never true:

         if (m48t59->irq < 0)
                  m48t59->irq = NO_IRQ;

And thus it will make the m48t59_rtc_probe() is failed when the driver is
working in a no irq mode:

Signed-off-by: Mark Zhan <rongkai.zhan@windriver.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-m48t59.c