Bug fix: enable secondary IDE only if enable_b is set.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2043 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Steven J. Magnani 2005-09-21 13:51:12 +00:00
parent b3d2d4d441
commit 3cec9c8433
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ static void ide_init(struct device *dev)
word = pci_read_config16(dev, 0x42); word = pci_read_config16(dev, 0x42);
word &= ~((1 << 15)); word &= ~((1 << 15));
if (enable_a) { if (enable_b) {
/* Enable secondary ide interface */ /* Enable secondary ide interface */
word |= (1<<15); word |= (1<<15);
printk_debug("IDE1 "); printk_debug("IDE1 ");