diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
commit | 334d0dd8b660557608142f0f77abc6812b48f08b (patch) | |
tree | 9393a9aa099d7d42deda5f9f5054796c0c769be7 /drivers/ide/pci/siimage.c | |
parent | 3f07d8796262f6aee135c8dd9a91210da9f888e4 (diff) | |
parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/ide/pci/siimage.c')
-rw-r--r-- | drivers/ide/pci/siimage.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c index 71eccdf5f817..c0188de3cc66 100644 --- a/drivers/ide/pci/siimage.c +++ b/drivers/ide/pci/siimage.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/ide/pci/siimage.c Version 1.11 Jan 27, 2007 | 2 | * linux/drivers/ide/pci/siimage.c Version 1.12 Mar 10 2007 |
3 | * | 3 | * |
4 | * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org> | 4 | * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org> |
5 | * Copyright (C) 2003 Red Hat <alan@redhat.com> | 5 | * Copyright (C) 2003 Red Hat <alan@redhat.com> |
@@ -287,11 +287,6 @@ static void config_siimage_chipset_for_pio (ide_drive_t *drive, byte set_speed) | |||
287 | (void) ide_config_drive_speed(drive, speed); | 287 | (void) ide_config_drive_speed(drive, speed); |
288 | } | 288 | } |
289 | 289 | ||
290 | static void config_chipset_for_pio (ide_drive_t *drive, byte set_speed) | ||
291 | { | ||
292 | config_siimage_chipset_for_pio(drive, set_speed); | ||
293 | } | ||
294 | |||
295 | /** | 290 | /** |
296 | * siimage_tune_chipset - set controller timings | 291 | * siimage_tune_chipset - set controller timings |
297 | * @drive: Drive to set up | 292 | * @drive: Drive to set up |
@@ -396,8 +391,6 @@ static int config_chipset_for_dma (ide_drive_t *drive) | |||
396 | { | 391 | { |
397 | u8 speed = ide_dma_speed(drive, siimage_ratemask(drive)); | 392 | u8 speed = ide_dma_speed(drive, siimage_ratemask(drive)); |
398 | 393 | ||
399 | config_chipset_for_pio(drive, !speed); | ||
400 | |||
401 | if (!speed) | 394 | if (!speed) |
402 | return 0; | 395 | return 0; |
403 | 396 | ||
@@ -423,7 +416,7 @@ static int siimage_config_drive_for_dma (ide_drive_t *drive) | |||
423 | return 0; | 416 | return 0; |
424 | 417 | ||
425 | if (ide_use_fast_pio(drive)) | 418 | if (ide_use_fast_pio(drive)) |
426 | config_chipset_for_pio(drive, 1); | 419 | config_siimage_chipset_for_pio(drive, 1); |
427 | 420 | ||
428 | return -1; | 421 | return -1; |
429 | } | 422 | } |
@@ -1015,7 +1008,6 @@ static void __devinit init_hwif_siimage(ide_hwif_t *hwif) | |||
1015 | 1008 | ||
1016 | hwif->ultra_mask = 0x7f; | 1009 | hwif->ultra_mask = 0x7f; |
1017 | hwif->mwdma_mask = 0x07; | 1010 | hwif->mwdma_mask = 0x07; |
1018 | hwif->swdma_mask = 0x07; | ||
1019 | 1011 | ||
1020 | if (!is_sata(hwif)) | 1012 | if (!is_sata(hwif)) |
1021 | hwif->atapi_dma = 1; | 1013 | hwif->atapi_dma = 1; |