Re: [PATCH 7/12]: rtc: Add TI BQ4802 RTC driver. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
From: David Miller <davem@xxxxxxxxxxxxx>
Date: Thu, 28 Aug 2008 23:09:35 -0700 (PDT)
> rtc: Add TI BQ4802 RTC driver.
>
> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Testing on ultra45 found a silly typo bug in this driver.
I'll integrate this fix into the original commit when
I integrate this stuff for real.
diff --git a/drivers/rtc/rtc-bq4802.c b/drivers/rtc/rtc-bq4802.c
index 8938b21..541580c 100644
--- a/drivers/rtc/rtc-bq4802.c
+++ b/drivers/rtc/rtc-bq4802.c
@@ -159,7 +159,7 @@ static int __devinit bq4802_probe(struct platform_device *pdev)
p->regs = (void __iomem *) p->r->start;
p->read = bq4802_read_io;
p->write = bq4802_write_io;
- } else if (p->r->flags & IORESOURCE_IO) {
+ } else if (p->r->flags & IORESOURCE_MEM) {
p->regs = ioremap(p->r->start, resource_size(p->r));
p->read = bq4802_read_mem;
p->write = bq4802_write_mem;
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux MIPS Home] [Kernel list] [DCCP] [Linux ARM list] [Linux] [Photo] [Yosemite News] [MIPS Architecture] [Linux SCSI] [Linux x86_64] [Linux Hams] [Site Home]
![]() |