Skip to contentSkip to conversation

IDE: Small fix for "hold" flag

PATCH New Benjamin Herrenschmidt 1 participant 1 message Aug 3, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IDE: Small fix for "hold" flag

Hi Marcelo !

The "hold" flag we added a few weeks ago to IDE to deal with some laptop hotswap bays isn't properly kept around in ide_unregister(), this fixes it. This fix is necessary for PowerMac media bay to work properly (and this is also the only driver using this flag so far)

Please apply,
Ben.

drivers/ide/ide.c +1 -0
diff -urN linux-2.4/drivers/ide/ide.c linuxppc_benh_devel/drivers/ide/ide.c
@@ -798,6 +798,7 @@
 	hwif->swdma_mask		= old_hwif.swdma_mask;
 
 	hwif->chipset			= old_hwif.chipset;
+	hwif->hold			= old_hwif.hold;
 
 #ifdef CONFIG_BLK_DEV_IDEPCI
 	hwif->pci_dev			= old_hwif.pci_dev;
@@ -2221,7 +2222,6 @@