mpt2sas: Move Gen2 HBA's device registration to a separate file
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>
Wed, 11 Nov 2015 12:00:20 +0000 (17:30 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Nov 2015 23:22:27 +0000 (18:22 -0500)
commit78f97c8f612d0e7d7d08d741549e89e8c951920a
tree4a00edc5aa64bfb13a8c99e4da64ff9395db6d62
parent7497392a1193ea5b32d8a8a2b8d77888e7fe8221
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>
drivers/scsi/mpt2sas/Makefile
drivers/scsi/mpt2sas/mpt2sas_module.c [new file with mode: 0644]
drivers/scsi/mpt3sas/mpt3sas_ctl.h