[PATCH] IDE: Small fix for "hold" flag

From: Benjamin Herrenschmidt (benh@kernel.crashing.org)
Date: Sun Aug 03 2003 - 09:05:13 EST


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.

diff -urN linux-2.4/drivers/ide/ide.c linuxppc_benh_devel/drivers/ide/ide.c
--- linux-2.4/drivers/ide/ide.c 2003-07-14 18:31:40.000000000 +0200
+++ linuxppc_benh_devel/drivers/ide/ide.c 2003-08-03 11:17:20.000000000 +0200
@@ -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 @@

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:21 EST