linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] fix BLK_DEV_HD_ONLY on ARM dependencies
@ 2008-06-09 22:21 Adrian Bunk
  2008-06-10 17:56 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 11+ messages in thread
From: Adrian Bunk @ 2008-06-09 22:21 UTC (permalink / raw)
  To: bzolnier; +Cc: linux-ide, linux-kernel, rmk

This patch limits BLK_DEV_HD_ONLY to the ARM platforms offering 
IRQ_HARDDISK, fixing the following compile error on others:

<--  snip  -->

...
  CC      drivers/ide/legacy/hd.o
...
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'hd_times_out':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: 'IRQ_HARDDISK' undeclared (first use in this function)
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: (Each undeclared identifier is reported only once
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:542: error: for each function it appears in.)
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'do_hd_request':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:661: error: 'IRQ_HARDDISK' undeclared (first use in this function)
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c: In function 'hd_init':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/legacy/hd.c:765: error: 'IRQ_HARDDISK' undeclared (first use in this function)
make[3]: *** [drivers/ide/legacy/hd.o] Error 1

<--  snip  -->

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
f3602f8b3005bec996d53f36cdeb9c894e257003 diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig
index b4f3aef..1607536 100644
--- a/drivers/ide/Kconfig
+++ b/drivers/ide/Kconfig
@@ -1028,6 +1028,7 @@ endif
 
 config BLK_DEV_HD_ONLY
 	bool "Old hard disk (MFM/RLL/IDE) driver"
+	depends on !ARM || ARCH_RPC || ARCH_SHARK || BROKEN
 	help
 	  There are two drivers for MFM/RLL/IDE hard disks. Most people use
 	  the newer enhanced driver, but this old one is still around for two


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

end of thread, other threads:[~2008-06-25 20:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 22:21 [2.6 patch] fix BLK_DEV_HD_ONLY on ARM dependencies Adrian Bunk
2008-06-10 17:56 ` Bartlomiej Zolnierkiewicz
2008-06-22 10:17   ` Adrian Bunk
2008-06-22 13:21     ` Bartlomiej Zolnierkiewicz
2008-06-24 21:54       ` [0/5] move hd.c to drivers/block/ Adrian Bunk
2008-06-25 20:16         ` Bartlomiej Zolnierkiewicz
2008-06-24 21:54       ` [1/5] remove BLK_DEV_HD_ONLY Adrian Bunk
2008-06-24 21:54       ` [2/5] ide/legacy/hd.c: use late_initcall() Adrian Bunk
2008-06-24 21:54       ` [3/5] move ide/legacy/hd.c to drivers/block/ Adrian Bunk
2008-06-24 21:55       ` [4/5] update the BLK_DEV_HD help text Adrian Bunk
2008-06-24 22:05       ` [5/5] hd.c: remove the #include <linux/mc146818rtc.h> Adrian Bunk

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