lkml.org 
[lkml]   [2008]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 2/9] au1xxx-ide: use ide_find_port()
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    ---
    drivers/ide/mips/au1xxx-ide.c | 8 +++++---
    1 file changed, 5 insertions(+), 3 deletions(-)

    Index: b/drivers/ide/mips/au1xxx-ide.c
    ===================================================================
    --- a/drivers/ide/mips/au1xxx-ide.c
    +++ b/drivers/ide/mips/au1xxx-ide.c
    @@ -603,9 +603,11 @@ static int au_ide_probe(struct device *d
    goto out;
    }

    - /* FIXME: This might possibly break PCMCIA IDE devices */
    -
    - hwif = &ide_hwifs[pdev->id];
    + hwif = ide_find_port();
    + if (hwif == NULL) {
    + ret = -ENOENT;
    + goto out;
    + }

    memset(&hw, 0, sizeof(hw));
    auide_setup_ports(&hw, ahwif);

    \
     
     \ /
      Last update: 2008-02-16 21:15    [W:5.699 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site