Re: [PATCH] PCI fixes for 2.6.10-rc1

From: Greg KH (greg_at_kroah.com)
Date: 11/13/04

  • Next message: Greg KH: "Re: [PATCH] PCI fixes for 2.6.10-rc1"
    Date:	Fri, 12 Nov 2004 15:21:57 -0800
    To: linux-kernel@vger.kernel.org
    
    

    ChangeSet 1.2026.66.20, 2004/11/10 16:44:40-08:00, hannal@us.ibm.com

    [PATCH] ide.c: replace pci_find_device with pci_dev_present

    As pci_find_device is going away it needs to be replaced. In this case the dev
    returned from pci_find_device was not being used so pci_dev_present was the
    appropriate replacement.

    This has been compile and boot tested on a T22.

    Signed-off-by: Hanna Linder <hannal@us.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

     drivers/ide/ide.c | 7 ++++++-
     1 files changed, 6 insertions(+), 1 deletion(-)

    diff -Nru a/drivers/ide/ide.c b/drivers/ide/ide.c
    --- a/drivers/ide/ide.c 2004-11-12 15:12:26 -08:00
    +++ b/drivers/ide/ide.c 2004-11-12 15:12:26 -08:00
    @@ -335,11 +335,16 @@
     
     int ide_system_bus_speed (void)
     {
    + static struct pci_device_id pci_default[] = {
    + { PCI_DEVICE(PCI_ANY_ID, PCI_ANY_ID) },
    + { }
    + };
    +
             if (!system_bus_speed) {
                     if (idebus_parameter) {
                             /* user supplied value */
                             system_bus_speed = idebus_parameter;
    - } else if (pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) != NULL) {
    + } else if (pci_dev_present(pci_default)) {
                             /* safe default value for PCI */
                             system_bus_speed = 33;
                     } else {

    -
    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/


  • Next message: Greg KH: "Re: [PATCH] PCI fixes for 2.6.10-rc1"

    Relevant Pages

    • Re: [ANNOUNCE] ndevfs - a "nano" devfs
      ... > replacement for devfs for those embedded users who just can't live ... > fs to provide device nodes. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [BUG] r200 dri driver deadlocks
      ... > And drum roll please... ... I have compiled both the kernel module and the replacement X server from ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2.6.9-rc2-mm4 ide.c] [2/8] Patch to replace pci_find_device with pci_dev_present
      ... In this case the dev ... appropriate replacement. ... int ide_system_bus_speed (void) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • How do I submit a driver?
      ... Sorry for the question if this is in a FAQ somewhere. ... It's not a patch to the existing ixj linux telephony driver, ... replacement. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.6-mm1
      ... > will know about it and only the login/su will learn about the future ... It's hack but it's a simpler hack. ... replacement is available. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)