lkml.org 
[lkml]   [2005]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] pci: remove deprecates
    Date
    From
    [PATCH] pci: remove deprecates

    Replace pci_find_device() with more safer pci_get_device().

    Signed-off-by: Amit Gud <gud@eth.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    commit 881a8c120acf7ec09c90289e2996b7c70f51e996
    tree edac4f63c30cbda0604e722056b5bb2876ddd67d
    parent 120bb4246a99cc6e9cc976573fcbcd0ee9d544ef
    author Amit Gud <gud@eth.net> Tue, 12 Apr 2005 19:03:33 +0530
    committer Greg Kroah-Hartman <gregkh@suse.de> Mon, 27 Jun 2005 21:52:38 -0700

    drivers/char/moxa.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c
    --- a/drivers/char/moxa.c
    +++ b/drivers/char/moxa.c
    @@ -451,7 +451,7 @@ static int __init moxa_init(void)
    int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
    i = 0;
    while (i < n) {
    - while ((p = pci_find_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
    + while ((p = pci_get_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
    {
    if (pci_enable_device(p))
    continue;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-06-28 08:15    [W:0.044 / U:276.904 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site