aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ppc
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:24 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-02-16 20:40:24 -0500
commit056a697b7388844a1341e92e277bff8e5bf61ec9 (patch)
treeb548accd5b90d95e9d774ce6a253164808d527a9 /drivers/ide/ppc
parentc94964a4555eb58be3f45edf2b63a2b3f549ef29 (diff)
ide: unexport ide_set_xfer_rate() (v2)
In cmd64x, siimage and scc_pata drivers: * don't set drive->init_speed as it should be already set by successful execution of ide_set_xfer_rate() * use hwif->speedproc functions directly Above changes allows removal of EXPORT_SYMBOL_GPL(ide_set_xfer_rate). v2: * updated for scc_pata driver Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ppc')
-rw-r--r--drivers/ide/ppc/scc_pata.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ide/ppc/scc_pata.c b/drivers/ide/ppc/scc_pata.c
index 3993d08312dc..65ad8ab34598 100644
--- a/drivers/ide/ppc/scc_pata.c
+++ b/drivers/ide/ppc/scc_pata.c
@@ -363,12 +363,9 @@ static int scc_config_chipset_for_dma(ide_drive_t *drive)
363 if (!speed) 363 if (!speed)
364 return 0; 364 return 0;
365 365
366 if (ide_set_xfer_rate(drive, speed)) 366 if (scc_tune_chipset(drive, speed))
367 return 0; 367 return 0;
368 368
369 if (!drive->init_speed)
370 drive->init_speed = speed;
371
372 return ide_dma_enable(drive); 369 return ide_dma_enable(drive);
373} 370}
374 371