diff mbox

scsi: smartpqi: allow static build ("built-in")

Message ID 20180102182409.3083-1-steffen.weber@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Steffen Weber Jan. 2, 2018, 6:24 p.m. UTC
If CONFIG_SCSI_SMARTPQI=y then don't build this driver as a module.

Signed-off-by: Steffen Weber <steffen.weber@gmail.com>
---
 drivers/scsi/smartpqi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Jan. 9, 2018, 3:31 a.m. UTC | #1
Steffen,

> If CONFIG_SCSI_SMARTPQI=y then don't build this driver as a module.

Applied to 4.16/scsi-queue. Thanks!
diff mbox

Patch

diff --git a/drivers/scsi/smartpqi/Makefile b/drivers/scsi/smartpqi/Makefile
index 0f42a225a..e6b779930 100644
--- a/drivers/scsi/smartpqi/Makefile
+++ b/drivers/scsi/smartpqi/Makefile
@@ -1,3 +1,3 @@ 
 ccflags-y += -I.
-obj-m		+= smartpqi.o
+obj-$(CONFIG_SCSI_SMARTPQI) += smartpqi.o
 smartpqi-objs := smartpqi_init.o smartpqi_sis.o smartpqi_sas_transport.o