diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2007-03-11 15:16:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-03-20 11:48:23 -0400 |
commit | 840c2835a1c867281d27158378a9d34f593a7664 (patch) | |
tree | 7b66a38d50fe41eec8e32975541ae63b5227e86d /drivers | |
parent | 1544d67738c864245b8a061fb72093daeea8d4f1 (diff) |
[SCSI] make scsi_wait_scan always modular
Currently scsi_wait_scan is only built modular if SCSI is modular.
However, it's perfectly possible for a built in SCSI still to have
modular drivers and thus need scsi_wait_scan as a module. Therefore,
scsi_wait_scan should always be built as a module (unless the kernel
doesn't support modules).
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/Kconfig | 6 | ||||
-rw-r--r-- | drivers/scsi/Makefile | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 4cd280e86966..f3bc0f459dea 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig | |||
@@ -241,6 +241,12 @@ config SCSI_SCAN_ASYNC | |||
241 | You can override this choice by specifying "scsi_mod.scan=sync" | 241 | You can override this choice by specifying "scsi_mod.scan=sync" |
242 | or async on the kernel's command line. | 242 | or async on the kernel's command line. |
243 | 243 | ||
244 | config SCSI_WAIT_SCAN | ||
245 | tristate | ||
246 | default m | ||
247 | depends on SCSI | ||
248 | depends on MODULES | ||
249 | |||
244 | menu "SCSI Transports" | 250 | menu "SCSI Transports" |
245 | depends on SCSI | 251 | depends on SCSI |
246 | 252 | ||
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile index 79ecf4ebe6eb..41c7883b24aa 100644 --- a/drivers/scsi/Makefile +++ b/drivers/scsi/Makefile | |||
@@ -145,7 +145,7 @@ obj-$(CONFIG_CHR_DEV_SCH) += ch.o | |||
145 | # This goes last, so that "real" scsi devices probe earlier | 145 | # This goes last, so that "real" scsi devices probe earlier |
146 | obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o | 146 | obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o |
147 | 147 | ||
148 | obj-$(CONFIG_SCSI) += scsi_wait_scan.o | 148 | obj-$(CONFIG_SCSI_WAIT_SCAN) += scsi_wait_scan.o |
149 | 149 | ||
150 | scsi_mod-y += scsi.o hosts.o scsi_ioctl.o constants.o \ | 150 | scsi_mod-y += scsi.o hosts.o scsi_ioctl.o constants.o \ |
151 | scsicam.o scsi_error.o scsi_lib.o \ | 151 | scsicam.o scsi_error.o scsi_lib.o \ |