[PATCH] aic7xxx driver doesn't release region

From: KOCHI, Takayoshi (t-kouchi@mvf.biglobe.ne.jp)
Date: Wed Jul 24 2002 - 15:32:54 EST


Hi,

This is a patch to fix releasing memory and io regions for the
aic7xxx driver. This applies both 2.4- and 2.5-series.
Without this, you will fail to hot-remove the device.

This patch is tested on an IA32 server with ACPI PCI hotplug,
and reported to work.

--- aic7xxx_linux_pci.c.orig Tue Nov 13 09:19:41 2001
+++ aic7xxx_linux_pci.c Wed Jul 17 18:03:51 2002
@@ -98,6 +98,10 @@
                         break;
                 }
         }
+#ifdef MMAPIO
+ release_mem_region(pci_resource_start(pdev, 1), 0x1000);
+#endif
+ release_region(pci_resource_start(pdev, 0), 256);
 }
 #endif /* !LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) */
 

Thanks,

-- 
KOCHI, Takayoshi <t-kouchi@cq.jp.nec.com/t-kouchi@mvf.biglobe.ne.jp>

- 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 : Tue Jul 30 2002 - 14:00:17 EST