Skip to content

Commit 36fcd06

Browse files
Jingoo HanLee Jones
authored andcommitted
mfd: Remove DEFINE_PCI_DEVICE_TABLE macro
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro is not preferred. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 97b583f commit 36fcd06

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎drivers/mfd/cs5535-mfd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void cs5535_mfd_remove(struct pci_dev *pdev)
172172
pci_disable_device(pdev);
173173
}
174174

175-
static DEFINE_PCI_DEVICE_TABLE(cs5535_mfd_pci_tbl) = {
175+
static const struct pci_device_id cs5535_mfd_pci_tbl[] = {
176176
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_ISA) },
177177
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA) },
178178
{ 0, }

‎drivers/mfd/janz-cmodio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static void cmodio_pci_remove(struct pci_dev *dev)
265265
#define PCI_VENDOR_ID_JANZ 0x13c3
266266

267267
/* The list of devices that this module will support */
268-
static DEFINE_PCI_DEVICE_TABLE(cmodio_pci_ids) = {
268+
static const struct pci_device_id cmodio_pci_ids[] = {
269269
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030, PCI_VENDOR_ID_JANZ, 0x0101 },
270270
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050, PCI_VENDOR_ID_JANZ, 0x0100 },
271271
{ 0, }

‎drivers/mfd/lpc_ich.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static struct lpc_ich_info lpc_chipset_info[] = {
517517
* pci_driver, because the I/O Controller Hub has also other
518518
* functions that probably will be registered by other drivers.
519519
*/
520-
static DEFINE_PCI_DEVICE_TABLE(lpc_ich_ids) = {
520+
static const struct pci_device_id lpc_ich_ids[] = {
521521
{ PCI_VDEVICE(INTEL, 0x2410), LPC_ICH},
522522
{ PCI_VDEVICE(INTEL, 0x2420), LPC_ICH0},
523523
{ PCI_VDEVICE(INTEL, 0x2440), LPC_ICH2},

‎drivers/mfd/lpc_sch.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static struct mfd_cell wdt_sch_cell = {
7676
.ignore_resource_conflicts = true,
7777
};
7878

79-
static DEFINE_PCI_DEVICE_TABLE(lpc_sch_ids) = {
79+
static const struct pci_device_id lpc_sch_ids[] = {
8080
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_LPC) },
8181
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ITC_LPC) },
8282
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CENTERTON_ILB) },

‎drivers/mfd/rdc321x-southbridge.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void rdc321x_sb_remove(struct pci_dev *pdev)
9696
mfd_remove_devices(&pdev->dev);
9797
}
9898

99-
static DEFINE_PCI_DEVICE_TABLE(rdc321x_sb_table) = {
99+
static const struct pci_device_id rdc321x_sb_table[] = {
100100
{ PCI_DEVICE(PCI_VENDOR_ID_RDC, PCI_DEVICE_ID_RDC_R6030) },
101101
{}
102102
};

‎drivers/mfd/rtsx_pcr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static struct mfd_cell rtsx_pcr_cells[] = {
5050
},
5151
};
5252

53-
static DEFINE_PCI_DEVICE_TABLE(rtsx_pci_ids) = {
53+
static const struct pci_device_id rtsx_pci_ids[] = {
5454
{ PCI_DEVICE(0x10EC, 0x5209), PCI_CLASS_OTHERS << 16, 0xFF0000 },
5555
{ PCI_DEVICE(0x10EC, 0x5229), PCI_CLASS_OTHERS << 16, 0xFF0000 },
5656
{ PCI_DEVICE(0x10EC, 0x5289), PCI_CLASS_OTHERS << 16, 0xFF0000 },

‎drivers/mfd/sm501.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ static int sm501_plat_remove(struct platform_device *dev)
17101710
return 0;
17111711
}
17121712

1713-
static DEFINE_PCI_DEVICE_TABLE(sm501_pci_tbl) = {
1713+
static const struct pci_device_id sm501_pci_tbl[] = {
17141714
{ 0x126f, 0x0501, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
17151715
{ 0, },
17161716
};

‎drivers/mfd/sta2x11-mfd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int sta2x11_mfd_probe(struct pci_dev *pdev,
642642
return err;
643643
}
644644

645-
static DEFINE_PCI_DEVICE_TABLE(sta2x11_mfd_tbl) = {
645+
static const struct pci_device_id sta2x11_mfd_tbl[] = {
646646
{PCI_DEVICE(PCI_VENDOR_ID_STMICRO, PCI_DEVICE_ID_STMICRO_GPIO)},
647647
{PCI_DEVICE(PCI_VENDOR_ID_STMICRO, PCI_DEVICE_ID_STMICRO_VIC)},
648648
{0,},

‎drivers/mfd/timberdale.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static void timb_remove(struct pci_dev *dev)
851851
kfree(priv);
852852
}
853853

854-
static DEFINE_PCI_DEVICE_TABLE(timberdale_pci_tbl) = {
854+
static const struct pci_device_id timberdale_pci_tbl[] = {
855855
{ PCI_DEVICE(PCI_VENDOR_ID_TIMB, PCI_DEVICE_ID_TIMB) },
856856
{ 0 }
857857
};

‎drivers/mfd/vx855.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static void vx855_remove(struct pci_dev *pdev)
118118
pci_disable_device(pdev);
119119
}
120120

121-
static DEFINE_PCI_DEVICE_TABLE(vx855_pci_tbl) = {
121+
static const struct pci_device_id vx855_pci_tbl[] = {
122122
{ PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX855) },
123123
{ 0, }
124124
};

0 commit comments

Comments
 (0)