[PATCH 7/8] Char: moxa, use PCI_DEVICE
- From: Jiri Slaby <jirislaby@xxxxxxxxx>
- Date: Sun, 31 Dec 2006 02:05:21 +0100 (CET)
moxa, use PCI_DEVICE
Use PCI_DEVICE macro in pci_device_id list.
Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
---
commit 5b7f53b3500ebd3aa2cc25bb68fdcd88af3643c0
tree 8392124992e5eeb1eaad6f652468f1b1caa65dac
parent 9e4d8826dd1dbaa7bb9d520b02da25a5a5cefa13
author Jiri Slaby <jirislaby@xxxxxxxxx> Sun, 31 Dec 2006 01:56:01 +0059
committer Jiri Slaby <jirislaby@xxxxxxxxx> Sun, 31 Dec 2006 01:56:01 +0059
drivers/char/moxa.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c
index 5c0c0e6..a0eb088 100644
--- a/drivers/char/moxa.c
+++ b/drivers/char/moxa.c
@@ -83,12 +83,12 @@ static char *moxa_brdname[] =
#ifdef CONFIG_PCI
static struct pci_device_id moxa_pcibrds[] = {
- { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C218, PCI_ANY_ID, PCI_ANY_ID,
- 0, 0, MOXA_BOARD_C218_PCI },
- { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C320, PCI_ANY_ID, PCI_ANY_ID,
- 0, 0, MOXA_BOARD_C320_PCI },
- { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_CP204J, PCI_ANY_ID, PCI_ANY_ID,
- 0, 0, MOXA_BOARD_CP204J },
+ { PCI_DEVICE(PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C218),
+ .driver_data = MOXA_BOARD_C218_PCI },
+ { PCI_DEVICE(PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C320),
+ .driver_data = MOXA_BOARD_C320_PCI },
+ { PCI_DEVICE(PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_CP204J),
+ .driver_data = MOXA_BOARD_CP204J },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, moxa_pcibrds);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 1/8] Char: moxa, remove unused allocated page
- From: Jiri Slaby
- [PATCH 1/8] Char: moxa, remove unused allocated page
- Prev by Date: [PATCH 8/8] Char: moxa, eliminate typedefs
- Next by Date: Regression in 2.6.19 and 2.6.20 for snd_hda_intel
- Previous by thread: [PATCH 8/8] Char: moxa, eliminate typedefs
- Next by thread: Regression in 2.6.19 and 2.6.20 for snd_hda_intel
- Index(es):
Relevant Pages
- [git pull] jfs update
... commit c5111f504d2a9b0d258d7c4752b4093523315989 ... tree 6a52864aff79691689aea21cb0cb928327d5de5b
... parent 69eb66d7da7dba2696281981347698e1693c2340 ... JFS: Take logsync
lock before testing mp->lsn ... (Linux-Kernel) - [git patches] IDE update
... tree 4105ba774c775cdf53fb5fd3e07158b15218cb27 ... parent 21e2c01dc3e38d466eda5871645878d2c3a33261
... commit 21e2c01dc3e38d466eda5871645878d2c3a33261 ... Splitted up from the Debian
kernel patch. ... (Linux-Kernel) - [git pull] jfs update
... commit be0bf7da19135a7a0f8c275f20c819940be218d9 ... tree c8ba72b711730ce11f52fc20cd7c0e9c4bee7bc0
... parent 5b3030e39049212c975665cdb3eeabcfaf7c94ca ... JFS: Take logsync
lock before testing mp->lsn ... (Linux-Kernel) - [2.6-GIT] NTFS: Release 2.1.23.
... This is a big NTFS update. ... commit ba6d2377c85c9b8a793f455d8c9b6cf31985d70f
... tree 21e65c76db693869c84864af02e91c4b997a6ba5 ... parent af859a42d798f047fbfe198ed315a942662c39d2
... (Linux-Kernel) - (no subject)
... everything up in one tree, so that there's absolutely no record of the ... That
is, you may want to merge multiple parents in _one_ commit, ... each parent you
have merged. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)