/* DAC960_UnregisterBlockDevice unregisters the Block Device structures associated with Controller.  */
static void DAC960_UnregisterBlockDevice(DAC960_Controller_T *Controller)
/* DAC960_UnregisterBlockDevice unregisters the Block Device structures associated with Controller.  */
static void DAC960_UnregisterBlockDevice(DAC960_Controller_T *Controller)
{
  int MajorNumber = DAC960_MAJOR + Controller->ControllerNumber;
  int disk;
  for (disk = 0; disk < DAC960_MaxLogicalDrives; disk++) {
	del_gendisk(Controller->disks[disk]);
	blk_cleanup_queue(Controller->RequestQueue[disk]);
	Controller->RequestQueue[disk] = NULL;
  }
  unregister_blkdev(MajorNumber, "dac960");
}