Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0439208a8a399f0c4307c561d97e3f5523f5d085
Commit:     0439208a8a399f0c4307c561d97e3f5523f5d085
Parent:     bb35fb20b591833fe4205def1338e0e808be3216
Author:     Mark Zhan <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:39:47 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:44 2007 -0700

    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 <[EMAIL PROTECTED]>
    Acked-by: Alessandro Zummo <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/rtc/rtc-m48t59.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c
index 33b7523..bf60d35 100644
--- a/drivers/rtc/rtc-m48t59.c
+++ b/drivers/rtc/rtc-m48t59.c
@@ -35,7 +35,7 @@
 struct m48t59_private {
        void __iomem *ioaddr;
        unsigned int size; /* iomem size */
-       unsigned int irq;
+       int irq;
        struct rtc_device *rtc;
        spinlock_t lock; /* serialize the NVRAM and RTC access */
 };
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to