Skip to content

Commit a11c5c9

Browse files
committed
Merge tag 'pci-v3.17-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull DEFINE_PCI_DEVICE_TABLE removal from Bjorn Helgaas: "Part two of the PCI changes for v3.17: - Remove DEFINE_PCI_DEVICE_TABLE macro use (Benoit Taine) It's a mechanical change that removes uses of the DEFINE_PCI_DEVICE_TABLE macro. I waited until later in the merge window to reduce conflicts, but it's possible you'll still see a few" * tag 'pci-v3.17-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use
2 parents 179c0ac + 9baa3c3 commit a11c5c9

230 files changed

Lines changed: 242 additions & 240 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/x86/kernel/cpu/perf_event_intel_uncore.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ static struct intel_uncore_type *snbep_pci_uncores[] = {
945945
NULL,
946946
};
947947

948-
static DEFINE_PCI_DEVICE_TABLE(snbep_uncore_pci_ids) = {
948+
static const struct pci_device_id snbep_uncore_pci_ids[] = {
949949
{ /* Home Agent */
950950
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_UNC_HA),
951951
.driver_data = UNCORE_PCI_DEV_DATA(SNBEP_PCI_UNCORE_HA, 0),
@@ -1510,7 +1510,7 @@ static struct intel_uncore_type *ivt_pci_uncores[] = {
15101510
NULL,
15111511
};
15121512

1513-
static DEFINE_PCI_DEVICE_TABLE(ivt_uncore_pci_ids) = {
1513+
static const struct pci_device_id ivt_uncore_pci_ids[] = {
15141514
{ /* Home Agent 0 */
15151515
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xe30),
15161516
.driver_data = UNCORE_PCI_DEV_DATA(IVT_PCI_UNCORE_HA, 0),
@@ -1985,23 +1985,23 @@ static struct intel_uncore_type *snb_pci_uncores[] = {
19851985
NULL,
19861986
};
19871987

1988-
static DEFINE_PCI_DEVICE_TABLE(snb_uncore_pci_ids) = {
1988+
static const struct pci_device_id snb_uncore_pci_ids[] = {
19891989
{ /* IMC */
19901990
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SNB_IMC),
19911991
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
19921992
},
19931993
{ /* end: all zeroes */ },
19941994
};
19951995

1996-
static DEFINE_PCI_DEVICE_TABLE(ivb_uncore_pci_ids) = {
1996+
static const struct pci_device_id ivb_uncore_pci_ids[] = {
19971997
{ /* IMC */
19981998
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IVB_IMC),
19991999
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
20002000
},
20012001
{ /* end: all zeroes */ },
20022002
};
20032003

2004-
static DEFINE_PCI_DEVICE_TABLE(hsw_uncore_pci_ids) = {
2004+
static const struct pci_device_id hsw_uncore_pci_ids[] = {
20052005
{ /* IMC */
20062006
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HSW_IMC),
20072007
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),

‎arch/x86/kernel/iosf_mbi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int iosf_mbi_probe(struct pci_dev *pdev,
202202
return 0;
203203
}
204204

205-
static DEFINE_PCI_DEVICE_TABLE(iosf_mbi_pci_ids) = {
205+
static const struct pci_device_id iosf_mbi_pci_ids[] = {
206206
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_BAYTRAIL) },
207207
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_QUARK_X1000) },
208208
{ 0, },

‎drivers/block/mtip32xx/mtip32xx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4632,7 +4632,7 @@ static void mtip_pci_shutdown(struct pci_dev *pdev)
46324632
}
46334633

46344634
/* Table of device ids supported by this driver. */
4635-
static DEFINE_PCI_DEVICE_TABLE(mtip_pci_tbl) = {
4635+
static const struct pci_device_id mtip_pci_tbl[] = {
46364636
{ PCI_DEVICE(PCI_VENDOR_ID_MICRON, P320H_DEVICE_ID) },
46374637
{ PCI_DEVICE(PCI_VENDOR_ID_MICRON, P320M_DEVICE_ID) },
46384638
{ PCI_DEVICE(PCI_VENDOR_ID_MICRON, P320S_DEVICE_ID) },

‎drivers/block/rsxx/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ static const struct pci_error_handlers rsxx_err_handler = {
11371137
.slot_reset = rsxx_slot_reset,
11381138
};
11391139

1140-
static DEFINE_PCI_DEVICE_TABLE(rsxx_pci_ids) = {
1140+
static const struct pci_device_id rsxx_pci_ids[] = {
11411141
{PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_FS70_FLASH)},
11421142
{PCI_DEVICE(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_FS80_FLASH)},
11431143
{0,},

‎drivers/block/skd_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4766,7 +4766,7 @@ static const struct block_device_operations skd_blockdev_ops = {
47664766
*****************************************************************************
47674767
*/
47684768

4769-
static DEFINE_PCI_DEVICE_TABLE(skd_pci_tbl) = {
4769+
static const struct pci_device_id skd_pci_tbl[] = {
47704770
{ PCI_VENDOR_ID_STEC, PCI_DEVICE_ID_S1120,
47714771
PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
47724772
{ 0 } /* terminate list */

‎drivers/crypto/ccp/ccp-pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static int ccp_pci_resume(struct pci_dev *pdev)
320320
}
321321
#endif
322322

323-
static DEFINE_PCI_DEVICE_TABLE(ccp_pci_table) = {
323+
static const struct pci_device_id ccp_pci_table[] = {
324324
{ PCI_VDEVICE(AMD, 0x1537), },
325325
/* Last entry must be zero */
326326
{ 0, }

‎drivers/gpu/drm/ast/ast_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static struct drm_driver driver;
5151
.subdevice = PCI_ANY_ID, \
5252
.driver_data = (unsigned long) info }
5353

54-
static DEFINE_PCI_DEVICE_TABLE(pciidlist) = {
54+
static const struct pci_device_id pciidlist[] = {
5555
AST_VGA_DEVICE(PCI_CHIP_AST2000, NULL),
5656
AST_VGA_DEVICE(PCI_CHIP_AST2100, NULL),
5757
/* AST_VGA_DEVICE(PCI_CHIP_AST1180, NULL), - don't bind to 1180 for now */

‎drivers/gpu/drm/bochs/bochs_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void bochs_pci_remove(struct pci_dev *pdev)
177177
drm_put_dev(dev);
178178
}
179179

180-
static DEFINE_PCI_DEVICE_TABLE(bochs_pci_tbl) = {
180+
static const struct pci_device_id bochs_pci_tbl[] = {
181181
{
182182
.vendor = 0x1234,
183183
.device = 0x1111,

‎drivers/gpu/drm/cirrus/cirrus_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module_param_named(modeset, cirrus_modeset, int, 0400);
2929
static struct drm_driver driver;
3030

3131
/* only bind to the cirrus chip in qemu */
32-
static DEFINE_PCI_DEVICE_TABLE(pciidlist) = {
32+
static const struct pci_device_id pciidlist[] = {
3333
{ PCI_VENDOR_ID_CIRRUS, PCI_DEVICE_ID_CIRRUS_5446, 0x1af4, 0x1100, 0,
3434
0, 0 },
3535
{0,}

‎drivers/gpu/drm/gma500/oaktrail_hdmi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ void oaktrail_hdmi_init(struct drm_device *dev,
674674
kfree(gma_encoder);
675675
}
676676

677-
static DEFINE_PCI_DEVICE_TABLE(hdmi_ids) = {
677+
static const struct pci_device_id hdmi_ids[] = {
678678
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080d) },
679679
{ 0 }
680680
};

0 commit comments

Comments
 (0)