aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-07-16 14:33:47 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:47 -0400
commit453ea3ed0b3e8ad67d4ee9d2fccf3d95a3e1f709 (patch)
tree359db77d614ee17d948a9e9fc318174c12e96377 /drivers
parent01c22bfc30a3f40fed08cfd2779348edcb6c5e53 (diff)
move ide/legacy/hd.c to drivers/block/
This patch moves hd.c to drivers/block/ Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: rmk@arm.linux.org.uk Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/Kconfig24
-rw-r--r--drivers/block/Makefile1
-rw-r--r--drivers/block/hd.c (renamed from drivers/ide/legacy/hd.c)0
-rw-r--r--drivers/ide/Kconfig23
-rw-r--r--drivers/ide/Makefile5
5 files changed, 25 insertions, 28 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 0d1d2133d9bc..c3909743c484 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -433,4 +433,28 @@ config VIRTIO_BLK
433 This is the virtual block driver for virtio. It can be used with 433 This is the virtual block driver for virtio. It can be used with
434 lguest or QEMU based VMMs (like KVM or Xen). Say Y or M. 434 lguest or QEMU based VMMs (like KVM or Xen). Say Y or M.
435 435
436config BLK_DEV_HD
437 bool "Old hard disk (MFM/RLL/IDE) driver"
438 depends on HAVE_IDE
439 depends on !ARM || ARCH_RPC || ARCH_SHARK || BROKEN
440 help
441 There are two drivers for MFM/RLL/IDE hard disks. Most people use
442 the newer enhanced driver, but this old one is still around for two
443 reasons. Some older systems have strange timing problems and seem to
444 work only with the old driver (which itself does not work with some
445 newer systems). The other reason is that the old driver is smaller,
446 since it lacks the enhanced functionality of the new one. This makes
447 it a good choice for systems with very tight memory restrictions, or
448 for systems with only older MFM/RLL/ESDI drives. Choosing the old
449 driver can save 13 KB or so of kernel memory.
450
451 If you want to use this driver together with the new one you have
452 to use "hda=noprobe hdb=noprobe" kernel parameters to prevent the new
453 driver from probing the primary interface.
454
455 If you are unsure, then just choose the Enhanced IDE/MFM/RLL driver
456 instead of this one. For more detailed information, read the
457 Disk-HOWTO, available from
458 <http://www.tldp.org/docs.html#howto>.
459
436endif # BLK_DEV 460endif # BLK_DEV
diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index 5e584306be99..204332b29578 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -29,5 +29,6 @@ obj-$(CONFIG_VIRTIO_BLK) += virtio_blk.o
29obj-$(CONFIG_VIODASD) += viodasd.o 29obj-$(CONFIG_VIODASD) += viodasd.o
30obj-$(CONFIG_BLK_DEV_SX8) += sx8.o 30obj-$(CONFIG_BLK_DEV_SX8) += sx8.o
31obj-$(CONFIG_BLK_DEV_UB) += ub.o 31obj-$(CONFIG_BLK_DEV_UB) += ub.o
32obj-$(CONFIG_BLK_DEV_HD) += hd.o
32 33
33obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o 34obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o
diff --git a/drivers/ide/legacy/hd.c b/drivers/block/hd.c
index 00b695652b2a..00b695652b2a 100644
--- a/drivers/ide/legacy/hd.c
+++ b/drivers/block/hd.c
diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig
index 39b95f9c2ad1..15b09b89588a 100644
--- a/drivers/ide/Kconfig
+++ b/drivers/ide/Kconfig
@@ -1000,27 +1000,4 @@ config BLK_DEV_IDEDMA
1000 1000
1001endif 1001endif
1002 1002
1003config BLK_DEV_HD
1004 bool "Old hard disk (MFM/RLL/IDE) driver"
1005 depends on !ARM || ARCH_RPC || ARCH_SHARK || BROKEN
1006 help
1007 There are two drivers for MFM/RLL/IDE hard disks. Most people use
1008 the newer enhanced driver, but this old one is still around for two
1009 reasons. Some older systems have strange timing problems and seem to
1010 work only with the old driver (which itself does not work with some
1011 newer systems). The other reason is that the old driver is smaller,
1012 since it lacks the enhanced functionality of the new one. This makes
1013 it a good choice for systems with very tight memory restrictions, or
1014 for systems with only older MFM/RLL/ESDI drives. Choosing the old
1015 driver can save 13 KB or so of kernel memory.
1016
1017 If you want to use this driver together with the new one you have
1018 to use "hda=noprobe hdb=noprobe" kernel parameters to prevent the new
1019 driver from probing the primary interface.
1020
1021 If you are unsure, then just choose the Enhanced IDE/MFM/RLL driver
1022 instead of this one. For more detailed information, read the
1023 Disk-HOWTO, available from
1024 <http://www.tldp.org/docs.html#howto>.
1025
1026endif # IDE 1003endif # IDE
diff --git a/drivers/ide/Makefile b/drivers/ide/Makefile
index 39e99ace5cd3..5d414e301a5a 100644
--- a/drivers/ide/Makefile
+++ b/drivers/ide/Makefile
@@ -61,8 +61,3 @@ ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
61endif 61endif
62 62
63obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/ 63obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/
64
65ifeq ($(CONFIG_BLK_DEV_HD), y)
66 hd-core-y += legacy/hd.o
67 obj-y += hd-core.o
68endif