linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s
@ 2006-04-10 20:39 Adrian Bunk
  2006-04-10 21:18 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-04-10 20:39 UTC (permalink / raw)
  To: B.Zolnierkiewicz; +Cc: linux-kernel, linux-ide, rmk, starvik, dev-etrax

The arm and the cris port both still contained unused 
ide_init_default_hwifs() static inline's being removed by this patch.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 include/asm-arm/arch-sa1100/ide.h |   25 -------------------------
 include/asm-cris/arch-v10/ide.h   |   12 ------------
 2 files changed, 37 deletions(-)

--- linux-2.6.17-rc1-mm2-full/include/asm-arm/arch-sa1100/ide.h.old	2006-04-10 21:15:04.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/include/asm-arm/arch-sa1100/ide.h	2006-04-10 21:15:37.000000000 +0200
@@ -49,28 +49,3 @@
 		*irq = 0;
 }
 
-/*
- * This registers the standard ports for this architecture with the IDE
- * driver.
- */
-static __inline__ void
-ide_init_default_hwifs(void)
-{
-    if (machine_is_lart()) {
-#ifdef CONFIG_SA1100_LART
-        hw_regs_t hw;
-
-        /* Enable GPIO as interrupt line */
-        GPDR &= ~LART_GPIO_IDE;
-	set_irq_type(LART_IRQ_IDE, IRQT_RISING);
-
-        /* set PCMCIA interface timing */
-        MECR = 0x00060006;
-
-        /* init the interface */
-	ide_init_hwif_ports(&hw, PCMCIA_IO_0_BASE + 0x0000, PCMCIA_IO_0_BASE + 0x1000, NULL);
-        hw.irq = LART_IRQ_IDE;
-        ide_register_hw(&hw);
-#endif
-    }
-}
--- linux-2.6.17-rc1-mm2-full/include/asm-cris/arch-v10/ide.h.old	2006-04-10 21:15:47.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/include/asm-cris/arch-v10/ide.h	2006-04-10 21:16:00.000000000 +0200
@@ -77,18 +77,6 @@
 	hw->io_ports[IDE_IRQ_OFFSET] = 0;
 }
 
-static inline void ide_init_default_hwifs(void)
-{
-	hw_regs_t hw;
-	int index;
-
-	for(index = 0; index < MAX_HWIFS; index++) {
-		ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, NULL);
-		hw.irq = ide_default_irq(ide_default_io_base(index));
-		ide_register_hw(&hw, NULL);
-	}
-}
-
 /* some configuration options we don't need */
 
 #undef SUPPORT_VLB_SYNC


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

* Re: [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s
  2006-04-10 20:39 [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s Adrian Bunk
@ 2006-04-10 21:18 ` Russell King
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King @ 2006-04-10 21:18 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: B.Zolnierkiewicz, linux-kernel, linux-ide, starvik, dev-etrax

On Mon, Apr 10, 2006 at 10:39:50PM +0200, Adrian Bunk wrote:
> --- linux-2.6.17-rc1-mm2-full/include/asm-arm/arch-sa1100/ide.h.old	2006-04-10 21:15:04.000000000 +0200
> +++ linux-2.6.17-rc1-mm2-full/include/asm-arm/arch-sa1100/ide.h	2006-04-10 21:15:37.000000000 +0200
> @@ -49,28 +49,3 @@
>  		*irq = 0;
>  }
>  
> -/*
> - * This registers the standard ports for this architecture with the IDE
> - * driver.
> - */
> -static __inline__ void
> -ide_init_default_hwifs(void)
> -{
> -    if (machine_is_lart()) {
> -#ifdef CONFIG_SA1100_LART
> -        hw_regs_t hw;
> -
> -        /* Enable GPIO as interrupt line */
> -        GPDR &= ~LART_GPIO_IDE;
> -	set_irq_type(LART_IRQ_IDE, IRQT_RISING);
> -
> -        /* set PCMCIA interface timing */
> -        MECR = 0x00060006;
> -
> -        /* init the interface */
> -	ide_init_hwif_ports(&hw, PCMCIA_IO_0_BASE + 0x0000, PCMCIA_IO_0_BASE + 0x1000, NULL);
> -        hw.irq = LART_IRQ_IDE;
> -        ide_register_hw(&hw);
> -#endif
> -    }
> -}

NAK.  Waiting for the LART folk to get off their backsides and submit a
patch to do what's required.  Think of the above as merely documentation
for what's required.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

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

end of thread, other threads:[~2006-04-10 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 20:39 [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s Adrian Bunk
2006-04-10 21:18 ` Russell King

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).