diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-03-19 17:57:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-19 20:30:21 +0100 |
commit | 768ffc66b45fd6551162d64ac8d92c101725262a (patch) | |
tree | a0fe3040612ba917bdfd64846e4abdc1a15bb263 /drivers/scsi/csiostor | |
parent | cxgb4: Add device ID for new adapter (diff) | |
download | linux-768ffc66b45fd6551162d64ac8d92c101725262a.tar.xz linux-768ffc66b45fd6551162d64ac8d92c101725262a.zip |
cxgb4/cxgb4vf/csiostor: Make PCI Device ID Tables be "const"
Make PCI Device ID Tables be "const" to move them out of the data segment and
remove a redundant check on CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN in
t4_pci_id_tbl.h to guard the contents of the include file.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/csiostor')
-rw-r--r-- | drivers/scsi/csiostor/csio_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index d9631e15f7b5..dbe416ff46c2 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -1172,7 +1172,7 @@ static struct pci_error_handlers csio_err_handler = { * Macros needed to support the PCI Device ID Table ... */ #define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \ - static struct pci_device_id csio_pci_tbl[] = { + static const struct pci_device_id csio_pci_tbl[] = { /* Define for FCoE uses PF6 */ #define CH_PCI_DEVICE_ID_FUNCTION 0x6 |