diff options
Diffstat (limited to 'drivers/ide/ppc/pmac.c')
-rw-r--r-- | drivers/ide/ppc/pmac.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 3277bf2d66a5..4e0583907413 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -1049,17 +1049,22 @@ pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif, hw_regs_t *hw) | |||
1049 | hwif->mmio = 1; | 1049 | hwif->mmio = 1; |
1050 | hwif->hwif_data = pmif; | 1050 | hwif->hwif_data = pmif; |
1051 | ide_init_port_hw(hwif, hw); | 1051 | ide_init_port_hw(hwif, hw); |
1052 | hwif->noprobe = pmif->mediabay; | ||
1053 | hwif->cbl = pmif->cable_80 ? ATA_CBL_PATA80 : ATA_CBL_PATA40; | 1052 | hwif->cbl = pmif->cable_80 ? ATA_CBL_PATA80 : ATA_CBL_PATA40; |
1054 | 1053 | ||
1055 | printk(KERN_INFO "ide%d: Found Apple %s controller, bus ID %d%s, irq %d\n", | 1054 | printk(KERN_INFO "ide%d: Found Apple %s controller, bus ID %d%s, irq %d\n", |
1056 | hwif->index, model_name[pmif->kind], pmif->aapl_bus_id, | 1055 | hwif->index, model_name[pmif->kind], pmif->aapl_bus_id, |
1057 | pmif->mediabay ? " (mediabay)" : "", hwif->irq); | 1056 | pmif->mediabay ? " (mediabay)" : "", hwif->irq); |
1058 | 1057 | ||
1058 | if (pmif->mediabay) { | ||
1059 | #ifdef CONFIG_PMAC_MEDIABAY | 1059 | #ifdef CONFIG_PMAC_MEDIABAY |
1060 | if (pmif->mediabay && check_media_bay_by_base(pmif->regbase, MB_CD) == 0) | 1060 | if (check_media_bay_by_base(pmif->regbase, MB_CD)) { |
1061 | hwif->noprobe = 0; | 1061 | #else |
1062 | #endif /* CONFIG_PMAC_MEDIABAY */ | 1062 | if (1) { |
1063 | #endif | ||
1064 | hwif->drives[0].noprobe = 1; | ||
1065 | hwif->drives[1].noprobe = 1; | ||
1066 | } | ||
1067 | } | ||
1063 | 1068 | ||
1064 | #ifdef CONFIG_BLK_DEV_IDEDMA_PMAC | 1069 | #ifdef CONFIG_BLK_DEV_IDEDMA_PMAC |
1065 | if (pmif->cable_80 == 0) | 1070 | if (pmif->cable_80 == 0) |