lkml.org 
[lkml]   [2005]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 1/6] include, sound: pci_find_device remove (include/asm-i386/ide.h)
    From
    Generated in 2.6.13-mm1 kernel version.

    Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>

    ide.h | 7 ++++++-
    1 files changed, 6 insertions(+), 1 deletion(-)

    diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h
    --- a/include/asm-i386/ide.h
    +++ b/include/asm-i386/ide.h
    @@ -41,7 +41,12 @@ static __inline__ int ide_default_irq(un

    static __inline__ unsigned long ide_default_io_base(int index)
    {
    - if (pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) {
    + struct pci_dev *pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
    + unsigned int a = !pdev;
    +
    + pci_dev_put(pdev);
    +
    + if (a) {
    switch(index) {
    case 2: return 0x1e8;
    case 3: return 0x168;
    -
    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-09-02 23:49    [W:0.019 / U:3.824 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site