aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ppc
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:16 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:16 -0400
commite53cd458d593c88247b8a7b2754d0e8055869670 (patch)
tree27076f0f9a1a334cf8ab3794a63f8b1f020adbd6 /drivers/ide/ppc
parente5e076a3540af0ed7b6491d1593396c99adbfbe1 (diff)
ide: remove ->noprobe field from ide_hwif_t
Update IDE PMAC host driver to use drive->noprobe instead of hwif->noprobe and remove hwif->noprobe completely (it is always set to zero now). There should be no functional changes caused by this patch. Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ppc')
-rw-r--r--drivers/ide/ppc/pmac.c15
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)