lkml.org 
[lkml]   [2009]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/19] drivers/char/hw_random: Use PCI_VDEVICE
    Date
    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/char/hw_random/amd-rng.c | 4 ++--
    drivers/char/hw_random/geode-rng.c | 3 +--
    2 files changed, 3 insertions(+), 4 deletions(-)

    diff --git a/drivers/char/hw_random/amd-rng.c b/drivers/char/hw_random/amd-rng.c
    index cd0ba51..0d8c578 100644
    --- a/drivers/char/hw_random/amd-rng.c
    +++ b/drivers/char/hw_random/amd-rng.c
    @@ -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);
    diff --git a/drivers/char/hw_random/geode-rng.c b/drivers/char/hw_random/geode-rng.c
    index 64d513f..4c4d4e1 100644
    --- a/drivers/char/hw_random/geode-rng.c
    +++ b/drivers/char/hw_random/geode-rng.c
    @@ -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);
    --
    1.6.3.1.10.g659a0.dirty


    \
     
     \ /
      Last update: 2009-06-25 07:19    [W:0.022 / U:31.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site