hwrng: Use PCI_VDEVICE
authorJoe Perches <joe@perches.com>
Thu, 25 Jun 2009 05:50:53 +0000 (13:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jun 2009 05:50:53 +0000 (13:50 +0800)
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/amd-rng.c
drivers/char/hw_random/geode-rng.c

index cd0ba51f7c801ff8288bc4f29ac1350a4ea2548c..0d8c5788b8e4e136313035b534f2cd096e81d442 100644 (file)
@@ -44,8 +44,8 @@
  * want to register another driver on the same PCI id.
  */
 static const struct pci_device_id pci_tbl[] = {
-       { 0x1022, 0x7443, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
-       { 0x1022, 0x746b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
+       { PCI_VDEVICE(AMD, 0x7443), 0, },
+       { PCI_VDEVICE(AMD, 0x746b), 0, },
        { 0, }, /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, pci_tbl);
index 64d513f68368294913bf3f6dd4a3b086e53cb27e..4c4d4e140f9853ee0714f7898477a6eae6757d8a 100644 (file)
@@ -46,8 +46,7 @@
  * want to register another driver on the same PCI id.
  */
 static const struct pci_device_id pci_tbl[] = {
-       { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LX_AES,
-         PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_LX_AES), 0, },
        { 0, }, /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, pci_tbl);
This page took 0.033298 seconds and 5 git commands to generate.