Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adrian Bunk and committed by
Bartlomiej Zolnierkiewicz
453ea3ed 01c22bfc

+25 -28
+24
drivers/block/Kconfig
··· 433 433 This is the virtual block driver for virtio. It can be used with 434 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 460 endif # BLK_DEV
+1
drivers/block/Makefile
··· 29 29 obj-$(CONFIG_VIODASD) += viodasd.o 30 30 obj-$(CONFIG_BLK_DEV_SX8) += sx8.o 31 31 obj-$(CONFIG_BLK_DEV_UB) += ub.o 32 + obj-$(CONFIG_BLK_DEV_HD) += hd.o 32 33 33 34 obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o
-23
drivers/ide/Kconfig
··· 1000 1000 1001 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 1003 endif # IDE
-5
drivers/ide/Makefile
··· 61 61 endif 62 62 63 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
drivers/ide/legacy/hd.c drivers/block/hd.c