/* mpt_device_driver_deregister - DeRegister device driver hooks @cb_idx: MPT protocol driver index  */
void mpt_device_driver_deregister(u8 cb_idx)
/* mpt_device_driver_deregister - DeRegister device driver hooks @cb_idx: MPT protocol driver index  */
void mpt_device_driver_deregister(u8 cb_idx)
{
	struct mpt_pci_driver *dd_cbfunc;
	MPT_ADAPTER	*ioc;
	if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS)
		return;
	dd_cbfunc = MptDeviceDriverHandlers[cb_idx];
	list_for_each_entry(ioc, &ioc_list, list) {
		if (dd_cbfunc->remove)
			dd_cbfunc->remove(ioc->pcidev);
	}
	MptDeviceDriverHandlers[cb_idx] = NULL;
}