scsi: smartpqi: allow static build ("built-in")
authorSteffen Weber <steffen.weber@gmail.com>
Tue, 2 Jan 2018 18:24:09 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:14 +0000 (15:42 +0100)
commit dc2db1dc5fb9ab3a43b305c2720fee5278dbee2a upstream.

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

Signed-off-by: Steffen Weber <steffen.weber@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/smartpqi/Makefile

index 0f42a225a66461ab456d93d94377cffde868f7c5..e6b77993023095c6c505ce8806ea0ee84d17ed2e 100644 (file)
@@ -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