/* megaraid_fini_mbox - undo controller initialization @adapter : our soft state  */
static void megaraid_fini_mbox(adapter_t *)
/* megaraid_fini_mbox - undo controller initialization @adapter : our soft state  */
static void megaraid_fini_mbox(adapter_t *)
{
	mraid_device_t *raid_dev = ADAP2RAIDDEV(adapter);
	megaraid_mbox_flush_cache(adapter);
	tasklet_kill(&adapter->dpc_h);
	megaraid_sysfs_free_resources(adapter);
	megaraid_free_cmd_packets(adapter);
	free_irq(adapter->irq, adapter);
	iounmap(raid_dev->baseaddr);
	pci_release_regions(adapter->pdev);
	kfree(raid_dev);
	return;
}