summaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/Makefile
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>2015-11-11 15:00:20 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2015-11-12 02:22:27 +0300
commit78f97c8f612d0e7d7d08d741549e89e8c951920a (patch)
tree4a00edc5aa64bfb13a8c99e4da64ff9395db6d62 /drivers/scsi/mpt2sas/Makefile
parent7497392a1193ea5b32d8a8a2b8d77888e7fe8221 (diff)
downloadlinux-78f97c8f612d0e7d7d08d741549e89e8c951920a.tar.xz
mpt2sas: Move Gen2 HBA's device registration to a separate file
1. Create a mpt2sas_module.c file for mpt2sas where GEN2 HBA devices register with PCI, SML, IOCTL subsystems. 2. Updated the Makefile to use the object files from mpt3sas folder. 3. Defined a compilation flag SCSI_MPT2SAS which can be used to not include those sections of code from mpt3sas driver which are not required for mpt2sas driver. 4. Inherited automatic diag buffer feature from mpt3sas driver. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Acked-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/Makefile')
-rw-r--r--drivers/scsi/mpt2sas/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/scsi/mpt2sas/Makefile b/drivers/scsi/mpt2sas/Makefile
index 2ac2fc30a00d..37716169b91a 100644
--- a/drivers/scsi/mpt2sas/Makefile
+++ b/drivers/scsi/mpt2sas/Makefile
@@ -2,10 +2,14 @@
# share the official mpi headers from the mpt3sas driver
ccflags-y += -I$(src)/../mpt3sas
+ccflags-y += -DSCSI_MPT2SAS
+# use the common object files from mpt3sas driver
obj-$(CONFIG_SCSI_MPT2SAS) += mpt2sas.o
-mpt2sas-y += mpt2sas_base.o \
- mpt2sas_config.o \
- mpt2sas_scsih.o \
- mpt2sas_transport.o \
- mpt2sas_ctl.o
+mpt2sas-y += ../mpt3sas/mpt3sas_base.o \
+ ../mpt3sas/mpt3sas_config.o \
+ ../mpt3sas/mpt3sas_scsih.o \
+ ../mpt3sas/mpt3sas_transport.o \
+ ../mpt3sas/mpt3sas_ctl.o \
+ ../mpt3sas/mpt3sas_trigger_diag.o \
+ mpt2sas_module.o