diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:24 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:24 -0500 |
commit | 056a697b7388844a1341e92e277bff8e5bf61ec9 (patch) | |
tree | b548accd5b90d95e9d774ce6a253164808d527a9 /drivers/ide/pci/cmd64x.c | |
parent | c94964a4555eb58be3f45edf2b63a2b3f549ef29 (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/pci/cmd64x.c')
-rw-r--r-- | drivers/ide/pci/cmd64x.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/ide/pci/cmd64x.c b/drivers/ide/pci/cmd64x.c index aee947e8fc38..009fc9168443 100644 --- a/drivers/ide/pci/cmd64x.c +++ b/drivers/ide/pci/cmd64x.c | |||
@@ -466,11 +466,8 @@ static int config_chipset_for_dma (ide_drive_t *drive) | |||
466 | if (!speed) | 466 | if (!speed) |
467 | return 0; | 467 | return 0; |
468 | 468 | ||
469 | if(ide_set_xfer_rate(drive, speed)) | 469 | if (cmd64x_tune_chipset(drive, speed)) |
470 | return 0; | 470 | return 0; |
471 | |||
472 | if (!drive->init_speed) | ||
473 | drive->init_speed = speed; | ||
474 | 471 | ||
475 | return ide_dma_enable(drive); | 472 | return ide_dma_enable(drive); |
476 | } | 473 | } |