diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:25 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:25 -0500 |
commit | 2ad1e558a2305c2b3d5099ee2f4a5929307c20ca (patch) | |
tree | 79a530648cc26184c3b2e3933c0ebad614329b5b /drivers/ide/pci | |
parent | 0ecdca26e556eae9668ce6de9554757dddb942ef (diff) |
ide: convert ide_hwif_t.mmio into flag (v2)
All users of ->mmio == 1 are gone so convert ->mmio into flag.
Noticed by Alan Cox.
v2:
* updated for scc_pata
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci')
-rw-r--r-- | drivers/ide/pci/sgiioc4.c | 2 | ||||
-rw-r--r-- | drivers/ide/pci/siimage.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c index 2af8a71e688e..083c7afe1162 100644 --- a/drivers/ide/pci/sgiioc4.c +++ b/drivers/ide/pci/sgiioc4.c | |||
@@ -593,7 +593,7 @@ static int sgiioc4_ide_dma_setup(ide_drive_t *drive) | |||
593 | static void __devinit | 593 | static void __devinit |
594 | ide_init_sgiioc4(ide_hwif_t * hwif) | 594 | ide_init_sgiioc4(ide_hwif_t * hwif) |
595 | { | 595 | { |
596 | hwif->mmio = 2; | 596 | hwif->mmio = 1; |
597 | hwif->autodma = 1; | 597 | hwif->autodma = 1; |
598 | hwif->atapi_dma = 1; | 598 | hwif->atapi_dma = 1; |
599 | hwif->ultra_mask = 0x0; /* Disable Ultra DMA */ | 599 | hwif->ultra_mask = 0x0; /* Disable Ultra DMA */ |
diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c index 505878cc21ea..40e992af0005 100644 --- a/drivers/ide/pci/siimage.c +++ b/drivers/ide/pci/siimage.c | |||
@@ -888,7 +888,8 @@ static void __devinit init_mmio_iops_siimage(ide_hwif_t *hwif) | |||
888 | base = (unsigned long) addr; | 888 | base = (unsigned long) addr; |
889 | 889 | ||
890 | hwif->dma_base = base + (ch ? 0x08 : 0x00); | 890 | hwif->dma_base = base + (ch ? 0x08 : 0x00); |
891 | hwif->mmio = 2; | 891 | |
892 | hwif->mmio = 1; | ||
892 | } | 893 | } |
893 | 894 | ||
894 | static int is_dev_seagate_sata(ide_drive_t *drive) | 895 | static int is_dev_seagate_sata(ide_drive_t *drive) |