Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c92a7f1d8254fabd99df33af59094935fc2cfe32
Commit:     c92a7f1d8254fabd99df33af59094935fc2cfe32
Parent:     d4452be757b5b94b2d39c5c254743caee913915e
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 11 00:32:13 2008 +0100
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Mon Feb 11 00:32:13 2008 +0100

    palm_bk3710: port initialization/probing bugfix
    
    Probe port _after_ it is fully initialized.
    
    Cc: Anton Salnikov <[EMAIL PROTECTED]>
    Acked-by: Sergei Shtylyov <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/arm/palm_bk3710.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/ide/arm/palm_bk3710.c b/drivers/ide/arm/palm_bk3710.c
index 0ce95c1..8e40bdb 100644
--- a/drivers/ide/arm/palm_bk3710.c
+++ b/drivers/ide/arm/palm_bk3710.c
@@ -370,13 +370,6 @@ static int __devinit palm_bk3710_probe(struct 
platform_device *pdev)
        ide_init_port_hw(hwif, &hw);
        hwif->quirkproc = NULL;
 
-       idx[0] = i;
-
-       ide_device_add(idx, NULL);
-
-       if (!hwif->present)
-               goto out;
-
        hwif->set_pio_mode = &palm_bk3710_set_pio_mode;
        hwif->set_dma_mode = &palm_bk3710_set_dma_mode;
        hwif->mmio = 1;
@@ -390,6 +383,13 @@ static int __devinit palm_bk3710_probe(struct 
platform_device *pdev)
 
        ide_setup_dma(hwif, mem->start);
 
+       idx[0] = i;
+
+       ide_device_add(idx, NULL);
+
+       if (!hwif->present)
+               goto out;
+
        return 0;
 out:
        printk(KERN_WARNING "Palm Chip BK3710 IDE Register Fail\n");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to