summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Miller <mike.miller@hp.com>2008-08-04 11:54:55 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-08-06 12:30:04 +0200
commitba198efb5ef4e5f4927a18ff95a58f40c58cbaa9 (patch)
treed379e3bc55b3c85114334661f9e3c723fbddff78 /drivers
parentcciss: add support for multi lun tape devices (diff)
downloadlinux-ba198efb5ef4e5f4927a18ff95a58f40c58cbaa9.tar.xz
linux-ba198efb5ef4e5f4927a18ff95a58f40c58cbaa9.zip
cciss: fix bug if scsi tape support is disabled
Bug fix. If SCSI tape support is turned off we get an implicit declaration of cciss_unregister_scsi error in cciss_remove_one. Signed-off-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/cciss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 9ffa821fbfd7..b73116ef9236 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -3614,7 +3614,9 @@ static void __devexit cciss_remove_one(struct pci_dev *pdev)
}
}
+#ifdef CONFIG_CISS_SCSI_TAPE
cciss_unregister_scsi(i); /* unhook from SCSI subsystem */
+#endif
cciss_shutdown(pdev);