diff options
Diffstat (limited to 'drivers/ide/legacy')
-rw-r--r-- | drivers/ide/legacy/dtc2278.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/ide/legacy/dtc2278.c b/drivers/ide/legacy/dtc2278.c index 7cbf2f1f35f9..73396f70f2b7 100644 --- a/drivers/ide/legacy/dtc2278.c +++ b/drivers/ide/legacy/dtc2278.c | |||
@@ -89,7 +89,10 @@ static void dtc2278_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
89 | static const struct ide_port_info dtc2278_port_info __initdata = { | 89 | static const struct ide_port_info dtc2278_port_info __initdata = { |
90 | .chipset = ide_dtc2278, | 90 | .chipset = ide_dtc2278, |
91 | .host_flags = IDE_HFLAG_SERIALIZE | | 91 | .host_flags = IDE_HFLAG_SERIALIZE | |
92 | IDE_HFLAG_NO_UNMASK_IRQS | | ||
92 | IDE_HFLAG_IO_32BIT | | 93 | IDE_HFLAG_IO_32BIT | |
94 | /* disallow ->io_32bit changes */ | ||
95 | IDE_HFLAG_NO_IO_32BIT | | ||
93 | IDE_HFLAG_NO_DMA | | 96 | IDE_HFLAG_NO_DMA | |
94 | IDE_HFLAG_NO_AUTOTUNE, | 97 | IDE_HFLAG_NO_AUTOTUNE, |
95 | .pio_mask = ATA_PIO4, | 98 | .pio_mask = ATA_PIO4, |
@@ -125,14 +128,7 @@ static int __init dtc2278_probe(void) | |||
125 | #endif | 128 | #endif |
126 | local_irq_restore(flags); | 129 | local_irq_restore(flags); |
127 | 130 | ||
128 | hwif->no_io_32bit = 1; /* disallow ->io_32bit changes */ | ||
129 | hwif->set_pio_mode = &dtc2278_set_pio_mode; | 131 | hwif->set_pio_mode = &dtc2278_set_pio_mode; |
130 | hwif->drives[0].no_unmask = 1; | ||
131 | hwif->drives[1].no_unmask = 1; | ||
132 | |||
133 | mate->no_io_32bit = 1; | ||
134 | mate->drives[0].no_unmask = 1; | ||
135 | mate->drives[1].no_unmask = 1; | ||
136 | 132 | ||
137 | ide_device_add(idx, &dtc2278_port_info); | 133 | ide_device_add(idx, &dtc2278_port_info); |
138 | 134 | ||