/* BusLogic_ReleaseResources releases any system resources previously acquired by BusLogic_AcquireResources.  */
static void BusLogic_ReleaseResources(struct BusLogic_HostAdapter *HostAdapter)
/* BusLogic_ReleaseResources releases any system resources previously acquired by BusLogic_AcquireResources.  */
static void BusLogic_ReleaseResources(struct BusLogic_HostAdapter *HostAdapter)
{
	if (HostAdapter->IRQ_ChannelAcquired)
		free_irq(HostAdapter->IRQ_Channel, HostAdapter);
	if (HostAdapter->DMA_ChannelAcquired)
		free_dma(HostAdapter->DMA_Channel);
	if (HostAdapter->MailboxSpace)
		pci_free_consistent(HostAdapter->PCI_Device, HostAdapter->MailboxSize, HostAdapter->MailboxSpace, HostAdapter->MailboxSpaceHandle);
	pci_dev_put(HostAdapter->PCI_Device);
	HostAdapter->MailboxSpace = NULL;
	HostAdapter->MailboxSpaceHandle = 0;
	HostAdapter->MailboxSize = 0;
}