From: Adrian Bunk <bunk@stusta.de>
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
rmk@arm.linux.org.uk, starvik@axis.com, dev-etrax@axis.com
Subject: [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s
Date: Mon, 10 Apr 2006 22:39:50 +0200 [thread overview]
Message-ID: <20060410203950.GG2408@stusta.de> (raw)
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
next reply other threads:[~2006-04-10 20:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 20:39 Adrian Bunk [this message]
2006-04-10 21:18 ` [RFC: 2.6 patch] remove unused ide_init_default_hwifs()'s Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060410203950.GG2408@stusta.de \
--to=bunk@stusta.de \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=dev-etrax@axis.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=starvik@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.