diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-16 14:33:47 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-16 14:33:47 -0400 |
commit | 453ea3ed0b3e8ad67d4ee9d2fccf3d95a3e1f709 (patch) | |
tree | 359db77d614ee17d948a9e9fc318174c12e96377 /drivers | |
parent | 01c22bfc30a3f40fed08cfd2779348edcb6c5e53 (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/Kconfig | 24 | ||||
-rw-r--r-- | drivers/block/Makefile | 1 | ||||
-rw-r--r-- | drivers/block/hd.c (renamed from drivers/ide/legacy/hd.c) | 0 | ||||
-rw-r--r-- | drivers/ide/Kconfig | 23 | ||||
-rw-r--r-- | drivers/ide/Makefile | 5 |
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 | ||
436 | config 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 | |||
436 | endif # BLK_DEV | 460 | endif # 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 | |||
29 | obj-$(CONFIG_VIODASD) += viodasd.o | 29 | obj-$(CONFIG_VIODASD) += viodasd.o |
30 | obj-$(CONFIG_BLK_DEV_SX8) += sx8.o | 30 | obj-$(CONFIG_BLK_DEV_SX8) += sx8.o |
31 | obj-$(CONFIG_BLK_DEV_UB) += ub.o | 31 | obj-$(CONFIG_BLK_DEV_UB) += ub.o |
32 | obj-$(CONFIG_BLK_DEV_HD) += hd.o | ||
32 | 33 | ||
33 | obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o | 34 | obj-$(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 | ||
1001 | endif | 1001 | endif |
1002 | 1002 | ||
1003 | config 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 | |||
1026 | endif # IDE | 1003 | endif # 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) | |||
61 | endif | 61 | endif |
62 | 62 | ||
63 | obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/ | 63 | obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/ |
64 | |||
65 | ifeq ($(CONFIG_BLK_DEV_HD), y) | ||
66 | hd-core-y += legacy/hd.o | ||
67 | obj-y += hd-core.o | ||
68 | endif | ||