aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@mvista.com>2006-09-09 12:31:03 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-12 10:17:30 -0400
commita506b44bb5000b2652490a906c3e58beb2a8f6bb (patch)
tree04a2c62f244cdacb88f7a8377c16783e04e66a88 /drivers/scsi/scsi.c
parent2b7cbe20174695bca1afe2a8f755e1eb299f4768 (diff)
[SCSI] fix compile error on module_refcount
LD .tmp_vmlinux1 drivers/built-in.o(.text+0x8e1f9): In function `scsi_device_put': drivers/scsi/scsi.c:887: undefined reference to `module_refcount' make: *** [.tmp_vmlinux1] Error 1 There are only two users of module_refcount() outside of kernel/module.c and the other one uses ifdef's similar to this. Signed-Off-By: Daniel Walker <dwalker@mvista.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index c35f5fc0d668..c51b5769eac8 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -875,10 +875,12 @@ void scsi_device_put(struct scsi_device *sdev)
875{ 875{
876 struct module *module = sdev->host->hostt->module; 876 struct module *module = sdev->host->hostt->module;
877 877
878#ifdef CONFIG_MODULE_UNLOAD
878 /* The module refcount will be zero if scsi_device_get() 879 /* The module refcount will be zero if scsi_device_get()
879 * was called from a module removal routine */ 880 * was called from a module removal routine */
880 if (module && module_refcount(module) != 0) 881 if (module && module_refcount(module) != 0)
881 module_put(module); 882 module_put(module);
883#endif
882 put_device(&sdev->sdev_gendev); 884 put_device(&sdev->sdev_gendev);
883} 885}
884EXPORT_SYMBOL(scsi_device_put); 886EXPORT_SYMBOL(scsi_device_put);