|
@@ -370,13 +370,6 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev)
|
|
ide_init_port_hw(hwif, &hw);
|
|
ide_init_port_hw(hwif, &hw);
|
|
hwif->quirkproc = NULL;
|
|
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_pio_mode = &palm_bk3710_set_pio_mode;
|
|
hwif->set_dma_mode = &palm_bk3710_set_dma_mode;
|
|
hwif->set_dma_mode = &palm_bk3710_set_dma_mode;
|
|
hwif->mmio = 1;
|
|
hwif->mmio = 1;
|
|
@@ -390,6 +383,13 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev)
|
|
|
|
|
|
ide_setup_dma(hwif, mem->start);
|
|
ide_setup_dma(hwif, mem->start);
|
|
|
|
|
|
|
|
+ idx[0] = i;
|
|
|
|
+
|
|
|
|
+ ide_device_add(idx, NULL);
|
|
|
|
+
|
|
|
|
+ if (!hwif->present)
|
|
|
|
+ goto out;
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
out:
|
|
out:
|
|
printk(KERN_WARNING "Palm Chip BK3710 IDE Register Fail\n");
|
|
printk(KERN_WARNING "Palm Chip BK3710 IDE Register Fail\n");
|