linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/9] mtd: amd76xrom: use DEFINE_PCI_DEVICE_TABLE macro
@ 2013-11-28  2:31 Jingoo Han
  2013-11-28  2:32 ` [PATCH 2/9] mtd: ck804xrom: " Jingoo Han
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jingoo Han @ 2013-11-28  2:31 UTC (permalink / raw)
  To: 'Brian Norris'
  Cc: 'Artem Bityutskiy', 'Jingoo Han',
	'David Woodhouse',
	linux-mtd

This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mtd/maps/amd76xrom.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/amd76xrom.c b/drivers/mtd/maps/amd76xrom.c
index f7207b0..6a0582e 100644
--- a/drivers/mtd/maps/amd76xrom.c
+++ b/drivers/mtd/maps/amd76xrom.c
@@ -296,7 +296,7 @@ static void amd76xrom_remove_one(struct pci_dev *pdev)
 	amd76xrom_cleanup(window);
 }
 
-static struct pci_device_id amd76xrom_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(amd76xrom_pci_tbl) = {
 	{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7410,
 		PCI_ANY_ID, PCI_ANY_ID, },
 	{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7440,
@@ -319,7 +319,7 @@ static struct pci_driver amd76xrom_driver = {
 static int __init init_amd76xrom(void)
 {
 	struct pci_dev *pdev;
-	struct pci_device_id *id;
+	const struct pci_device_id *id;
 	pdev = NULL;
 	for(id = amd76xrom_pci_tbl; id->vendor; id++) {
 		pdev = pci_get_device(id->vendor, id->device, NULL);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-11-28  4:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-28  2:31 [PATCH 1/9] mtd: amd76xrom: use DEFINE_PCI_DEVICE_TABLE macro Jingoo Han
2013-11-28  2:32 ` [PATCH 2/9] mtd: ck804xrom: " Jingoo Han
2013-11-28  2:32 ` [PATCH 3/9] mtd: esb2rom: " Jingoo Han
2013-11-28  2:33 ` [PATCH 4/9] mtd: ichxrom: " Jingoo Han
2013-11-28  2:33 ` [PATCH 5/9] mtd: intel_vr_nor: " Jingoo Han
2013-11-28  2:33 ` [PATCH 6/9] mtd: pci: " Jingoo Han
2013-11-28  2:34 ` [PATCH 7/9] mtd: scb2_flash: " Jingoo Han
2013-11-28  2:34 ` [PATCH 8/9] mtd: cafe_nand: " Jingoo Han
2013-11-28  2:34 ` [PATCH 9/9] mtd: r852: " Jingoo Han
2013-11-28  4:36 ` [PATCH 1/9] mtd: amd76xrom: " Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).