aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-03-19 15:30:25 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-19 15:30:25 -0400
commitd15b1de46ffa7551c36d7be5a58a02321a820a0f (patch)
treea0fe3040612ba917bdfd64846e4abdc1a15bb263
parent970282d0e1404b23f9d7ec6a676fa76ff15b3376 (diff)
parent768ffc66b45fd6551162d64ac8d92c101725262a (diff)
Merge branch 'cxgb4-next'
Hariprasad Shenai says: ==================== Add Device ID and make device ID table const This patch series adds new device ID and makes device ID table const The patches series is created against 'net-next' tree. And includes patches on cxgb4 and csiostor driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h5
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c2
-rw-r--r--drivers/scsi/csiostor/csio_init.c2
4 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 4af8a9fd75ae..dd4b2da6e468 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -124,7 +124,7 @@ struct filter_entry {
124/* Macros needed to support the PCI Device ID Table ... 124/* Macros needed to support the PCI Device ID Table ...
125 */ 125 */
126#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \ 126#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \
127 static struct pci_device_id cxgb4_pci_tbl[] = { 127 static const struct pci_device_id cxgb4_pci_tbl[] = {
128#define CH_PCI_DEVICE_ID_FUNCTION 0x4 128#define CH_PCI_DEVICE_ID_FUNCTION 0x4
129 129
130/* Include PCI Device IDs for both PF4 and PF0-3 so our PCI probe() routine is 130/* Include PCI Device IDs for both PF4 and PF0-3 so our PCI probe() routine is
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h
index ddfb5b846045..1a9a6f334d2d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h
@@ -60,8 +60,6 @@
60 * -- Used to finish the definition of the PCI ID Table. Note that we 60 * -- Used to finish the definition of the PCI ID Table. Note that we
61 * -- will be adding a trailing semi-colon (";") here. 61 * -- will be adding a trailing semi-colon (";") here.
62 */ 62 */
63#ifdef CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN
64
65#ifndef CH_PCI_DEVICE_ID_FUNCTION 63#ifndef CH_PCI_DEVICE_ID_FUNCTION
66#error CH_PCI_DEVICE_ID_FUNCTION not defined! 64#error CH_PCI_DEVICE_ID_FUNCTION not defined!
67#endif 65#endif
@@ -154,8 +152,7 @@ CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN
154 CH_PCI_ID_TABLE_FENTRY(0x5087), /* Custom T580-CR */ 152 CH_PCI_ID_TABLE_FENTRY(0x5087), /* Custom T580-CR */
155 CH_PCI_ID_TABLE_FENTRY(0x5088), /* Custom T570-CR */ 153 CH_PCI_ID_TABLE_FENTRY(0x5088), /* Custom T570-CR */
156 CH_PCI_ID_TABLE_FENTRY(0x5089), /* Custom T520-CR */ 154 CH_PCI_ID_TABLE_FENTRY(0x5089), /* Custom T520-CR */
155 CH_PCI_ID_TABLE_FENTRY(0x5090), /* Custom T540-CR */
157CH_PCI_DEVICE_ID_TABLE_DEFINE_END; 156CH_PCI_DEVICE_ID_TABLE_DEFINE_END;
158 157
159#endif /* CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN */
160
161#endif /* __T4_PCI_ID_TBL_H__ */ 158#endif /* __T4_PCI_ID_TBL_H__ */
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index 122e2964e63b..1d893b0b7ddf 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -3034,7 +3034,7 @@ static void cxgb4vf_pci_shutdown(struct pci_dev *pdev)
3034/* Macros needed to support the PCI Device ID Table ... 3034/* Macros needed to support the PCI Device ID Table ...
3035 */ 3035 */
3036#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \ 3036#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \
3037 static struct pci_device_id cxgb4vf_pci_tbl[] = { 3037 static const struct pci_device_id cxgb4vf_pci_tbl[] = {
3038#define CH_PCI_DEVICE_ID_FUNCTION 0x8 3038#define CH_PCI_DEVICE_ID_FUNCTION 0x8
3039 3039
3040#define CH_PCI_ID_TABLE_ENTRY(devid) \ 3040#define CH_PCI_ID_TABLE_ENTRY(devid) \
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 = {
1172 * Macros needed to support the PCI Device ID Table ... 1172 * Macros needed to support the PCI Device ID Table ...
1173 */ 1173 */
1174#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \ 1174#define CH_PCI_DEVICE_ID_TABLE_DEFINE_BEGIN \
1175 static struct pci_device_id csio_pci_tbl[] = { 1175 static const struct pci_device_id csio_pci_tbl[] = {
1176/* Define for FCoE uses PF6 */ 1176/* Define for FCoE uses PF6 */
1177#define CH_PCI_DEVICE_ID_FUNCTION 0x6 1177#define CH_PCI_DEVICE_ID_FUNCTION 0x6
1178 1178