linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2.6.29-rc2] palm_bk3710 buildfix
@ 2009-01-18 16:33 David Brownell
  2009-01-18 17:14 ` Sergei Shtylyov
  0 siblings, 1 reply; 11+ messages in thread
From: David Brownell @ 2009-01-18 16:33 UTC (permalink / raw)
  To: bzolnier; +Cc: linux-ide, Kevin Hilman, Sergei Shtylyov

From: David Brownell <dbrownell@users.sourceforge.net>
Subject: drivers/ide/palm_bk3710.c buildfix

  CC      drivers/ide/palm_bk3710.o
drivers/ide/palm_bk3710.c: In function 'palm_bk3710_probe':
drivers/ide/palm_bk3710.c:382: warning: assignment makes integer from pointer without a cast

Someone should fix hw_regs_t to neither be a typedef, nor
use "unsigned long" where it should use "void __iomem *".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 drivers/ide/palm_bk3710.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

--- a/drivers/ide/palm_bk3710.c
+++ b/drivers/ide/palm_bk3710.c
@@ -346,7 +346,8 @@ static int __init palm_bk3710_probe(stru
 {
 	struct clk *clk;
 	struct resource *mem, *irq;
-	unsigned long base, rate;
+	void __iomem *base;
+	unsigned long rate;
 	int i, rc;
 	hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
 
@@ -382,11 +383,13 @@ static int __init palm_bk3710_probe(stru
 	base = IO_ADDRESS(mem->start);
 
 	/* Configure the Palm Chip controller */
-	palm_bk3710_chipinit((void __iomem *)base);
+	palm_bk3710_chipinit(base);
 
 	for (i = 0; i < IDE_NR_PORTS - 2; i++)
-		hw.io_ports_array[i] = base + IDE_PALM_ATA_PRI_REG_OFFSET + i;
-	hw.io_ports.ctl_addr = base + IDE_PALM_ATA_PRI_CTL_OFFSET;
+		hw.io_ports_array[i] = (unsigned long)
+				(base + IDE_PALM_ATA_PRI_REG_OFFSET + i);
+	hw.io_ports.ctl_addr = (unsigned long)
+			(base + IDE_PALM_ATA_PRI_CTL_OFFSET);
 	hw.irq = irq->start;
 	hw.dev = &pdev->dev;
 	hw.chipset = ide_palm3710;

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-01-19 14:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-18 16:33 [patch 2.6.29-rc2] palm_bk3710 buildfix David Brownell
2009-01-18 17:14 ` Sergei Shtylyov
2009-01-19  0:29   ` David Brownell
2009-01-19  8:35     ` Sergei Shtylyov
2009-01-19  8:57       ` Sergei Shtylyov
2009-01-19 12:07         ` Bartlomiej Zolnierkiewicz
2009-01-19 13:06           ` Sergei Shtylyov
2009-01-19 14:14             ` Sergei Shtylyov
2009-01-19 12:00   ` Bartlomiej Zolnierkiewicz
2009-01-19 13:03     ` Sergei Shtylyov
2009-01-19 13:21       ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).