aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/cmd64x.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-16 16:29:56 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-16 16:29:56 -0400
commit9cbcc5e3c5d2d0355fed22d00762fd764c81a383 (patch)
tree1e8a0faed232ab34d8b2b423fbfafbbaab339f94 /drivers/ide/pci/cmd64x.c
parentd83fca58d3229f3b23a92a72c3428da8faf09940 (diff)
ide: use PCI_VDEVICE() macro
While at it: - make struct pci_device_id tables const - use PCI_DEVICE_ID_ITE_8213 define in it8213.c - fix comment in generic.c Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cmd64x.c')
-rw-r--r--drivers/ide/pci/cmd64x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ide/pci/cmd64x.c b/drivers/ide/pci/cmd64x.c
index 5f421deb3f3e..8c6cdb44f00c 100644
--- a/drivers/ide/pci/cmd64x.c
+++ b/drivers/ide/pci/cmd64x.c
@@ -641,11 +641,11 @@ static int __devinit cmd64x_init_one(struct pci_dev *dev, const struct pci_devic
641 return d.init_setup(dev, &d); 641 return d.init_setup(dev, &d);
642} 642}
643 643
644static struct pci_device_id cmd64x_pci_tbl[] = { 644static const struct pci_device_id cmd64x_pci_tbl[] = {
645 { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_CMD_643, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 645 { PCI_VDEVICE(CMD, PCI_DEVICE_ID_CMD_643), 0 },
646 { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_CMD_646, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1}, 646 { PCI_VDEVICE(CMD, PCI_DEVICE_ID_CMD_646), 1 },
647 { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_CMD_648, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2}, 647 { PCI_VDEVICE(CMD, PCI_DEVICE_ID_CMD_648), 2 },
648 { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_CMD_649, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3}, 648 { PCI_VDEVICE(CMD, PCI_DEVICE_ID_CMD_649), 3 },
649 { 0, }, 649 { 0, },
650}; 650};
651MODULE_DEVICE_TABLE(pci, cmd64x_pci_tbl); 651MODULE_DEVICE_TABLE(pci, cmd64x_pci_tbl);