From: Jingoo Han <jg1.han@samsung.com>
To: 'Brian Norris' <computersforpeace@gmail.com>
Cc: 'Artem Bityutskiy' <artem.bityutskiy@linux.intel.com>,
'Jingoo Han' <jg1.han@samsung.com>,
'David Woodhouse' <dwmw2@infradead.org>,
linux-mtd@lists.infradead.org
Subject: [PATCH 2/9] mtd: ck804xrom: use DEFINE_PCI_DEVICE_TABLE macro
Date: Thu, 28 Nov 2013 11:32:30 +0900 [thread overview]
Message-ID: <001f01ceebe2$15f35d50$41da17f0$%han@samsung.com> (raw)
In-Reply-To: <001e01ceebe1$f5adf370$e109da50$%han@samsung.com>
This macro is used to create a struct pci_device_id array.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/mtd/maps/ck804xrom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 0455166..2acaaa1 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -326,7 +326,7 @@ static void ck804xrom_remove_one(struct pci_dev *pdev)
ck804xrom_cleanup(window);
}
-static struct pci_device_id ck804xrom_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(ck804xrom_pci_tbl) = {
{ PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x0051), .driver_data = DEV_CK804 },
{ PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x0360), .driver_data = DEV_MCP55 },
{ PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x0361), .driver_data = DEV_MCP55 },
@@ -353,7 +353,7 @@ static struct pci_driver ck804xrom_driver = {
static int __init init_ck804xrom(void)
{
struct pci_dev *pdev;
- struct pci_device_id *id;
+ const struct pci_device_id *id;
int retVal;
pdev = NULL;
--
1.7.10.4
next prev parent reply other threads:[~2013-11-28 2:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 2:31 [PATCH 1/9] mtd: amd76xrom: use DEFINE_PCI_DEVICE_TABLE macro Jingoo Han
2013-11-28 2:32 ` Jingoo Han [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001f01ceebe2$15f35d50$41da17f0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox