Skip to content

Commit 453ea3e

Browse files
AdrianBunkbzolnier
authored andcommitted
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>
1 parent 01c22bf commit 453ea3e

5 files changed

Lines changed: 25 additions & 28 deletions

File tree

‎drivers/block/Kconfig‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,28 @@ config VIRTIO_BLK
433433
This is the virtual block driver for virtio. It can be used with
434434
lguest or QEMU based VMMs (like KVM or Xen). Say Y or M.
435435

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+
436460
endif # BLK_DEV

‎drivers/block/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ obj-$(CONFIG_VIRTIO_BLK) += virtio_blk.o
2929
obj-$(CONFIG_VIODASD) += viodasd.o
3030
obj-$(CONFIG_BLK_DEV_SX8) += sx8.o
3131
obj-$(CONFIG_BLK_DEV_UB) += ub.o
32+
obj-$(CONFIG_BLK_DEV_HD) += hd.o
3233

3334
obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o

‎drivers/ide/Kconfig‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,27 +1000,4 @@ config BLK_DEV_IDEDMA
10001000

10011001
endif
10021002

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-
10261003
endif # IDE

‎drivers/ide/Makefile‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,3 @@ ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
6161
endif
6262

6363
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

0 commit comments

Comments
 (0)