aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:19 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:19 -0400
commit3dd89a9b2af37d8e3efd785e20b12b785e50e48f (patch)
tree5dd755629cc9c0daaf4114f27a05ddd6d947813a
parent5add22241752a3c689bea2a9d0e71c2a5909ed8a (diff)
ide: cleanup setting hwif->mmio flag
It is no longer needed to set hwif->mmio flag to tell IDE layer to not manage resources so cleanup host drivers that used hwif->mmio flag only for this purpose. Ditto for ide_legacy_init_one(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/arm/bast-ide.c1
-rw-r--r--drivers/ide/arm/icside.c1
-rw-r--r--drivers/ide/arm/ide_arm.c1
-rw-r--r--drivers/ide/arm/rapide.c1
-rw-r--r--drivers/ide/cris/ide-cris.c2
-rw-r--r--drivers/ide/h8300/ide-h8300.c1
-rw-r--r--drivers/ide/ide-generic.c1
-rw-r--r--drivers/ide/ide-pnp.c1
-rw-r--r--drivers/ide/ide-probe.c1
-rw-r--r--drivers/ide/legacy/buddha.c2
-rw-r--r--drivers/ide/legacy/falconide.c1
-rw-r--r--drivers/ide/legacy/gayle.c2
-rw-r--r--drivers/ide/legacy/ide-4drives.c2
-rw-r--r--drivers/ide/legacy/ide_platform.c1
-rw-r--r--drivers/ide/legacy/macide.c2
-rw-r--r--drivers/ide/legacy/q40ide.c1
-rw-r--r--drivers/ide/mips/au1xxx-ide.c2
-rw-r--r--drivers/ide/mips/swarm.c3
-rw-r--r--drivers/ide/pci/cmd640.c2
-rw-r--r--drivers/ide/pci/delkin_cb.c1
-rw-r--r--drivers/ide/pci/sgiioc4.c1
-rw-r--r--drivers/ide/ppc/mpc8xx.c2
-rw-r--r--drivers/ide/ppc/pmac.c2
23 files changed, 2 insertions, 32 deletions
diff --git a/drivers/ide/arm/bast-ide.c b/drivers/ide/arm/bast-ide.c
index 5a2b0f163e84..d158f579bde2 100644
--- a/drivers/ide/arm/bast-ide.c
+++ b/drivers/ide/arm/bast-ide.c
@@ -55,7 +55,6 @@ static int __init bastide_register(unsigned int base, unsigned int aux, int irq)
55 ide_init_port_data(hwif, i); 55 ide_init_port_data(hwif, i);
56 56
57 ide_init_port_hw(hwif, &hw); 57 ide_init_port_hw(hwif, &hw);
58 hwif->mmio = 1;
59 hwif->port_ops = NULL; 58 hwif->port_ops = NULL;
60 59
61 idx[0] = i; 60 idx[0] = i;
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c
index 51d4efb4d794..d7f4c533c45c 100644
--- a/drivers/ide/arm/icside.c
+++ b/drivers/ide/arm/icside.c
@@ -416,7 +416,6 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e
416 * Ensure we're using MMIO 416 * Ensure we're using MMIO
417 */ 417 */
418 default_hwif_mmiops(hwif); 418 default_hwif_mmiops(hwif);
419 hwif->mmio = 1;
420 419
421 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { 420 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
422 hwif->io_ports[i] = port; 421 hwif->io_ports[i] = port;
diff --git a/drivers/ide/arm/ide_arm.c b/drivers/ide/arm/ide_arm.c
index a05d3dfe256c..4263ffd4ab20 100644
--- a/drivers/ide/arm/ide_arm.c
+++ b/drivers/ide/arm/ide_arm.c
@@ -53,7 +53,6 @@ static int __init ide_arm_init(void)
53 hwif = ide_find_port(); 53 hwif = ide_find_port();
54 if (hwif) { 54 if (hwif) {
55 ide_init_port_hw(hwif, &hw); 55 ide_init_port_hw(hwif, &hw);
56 hwif->mmio = 1;
57 idx[0] = hwif->index; 56 idx[0] = hwif->index;
58 57
59 ide_device_add(idx, NULL); 58 ide_device_add(idx, NULL);
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c
index 2c3d0ec91dc3..c0581bd98d0d 100644
--- a/drivers/ide/arm/rapide.c
+++ b/drivers/ide/arm/rapide.c
@@ -53,7 +53,6 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
53 53
54 ide_init_port_hw(hwif, &hw); 54 ide_init_port_hw(hwif, &hw);
55 55
56 hwif->mmio = 1;
57 default_hwif_mmiops(hwif); 56 default_hwif_mmiops(hwif);
58 57
59 idx[0] = hwif->index; 58 idx[0] = hwif->index;
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c
index c64b4c1b8e50..4b2c6b2caca5 100644
--- a/drivers/ide/cris/ide-cris.c
+++ b/drivers/ide/cris/ide-cris.c
@@ -815,7 +815,7 @@ static int __init init_e100_ide(void)
815 continue; 815 continue;
816 ide_init_port_data(hwif, hwif->index); 816 ide_init_port_data(hwif, hwif->index);
817 ide_init_port_hw(hwif, &hw); 817 ide_init_port_hw(hwif, &hw);
818 hwif->mmio = 1; 818
819 hwif->ata_input_data = &cris_ide_input_data; 819 hwif->ata_input_data = &cris_ide_input_data;
820 hwif->ata_output_data = &cris_ide_output_data; 820 hwif->ata_output_data = &cris_ide_output_data;
821 hwif->atapi_input_bytes = &cris_atapi_input_bytes; 821 hwif->atapi_input_bytes = &cris_atapi_input_bytes;
diff --git a/drivers/ide/h8300/ide-h8300.c b/drivers/ide/h8300/ide-h8300.c
index 92b02b96d7db..0708b29cdb17 100644
--- a/drivers/ide/h8300/ide-h8300.c
+++ b/drivers/ide/h8300/ide-h8300.c
@@ -74,7 +74,6 @@ static inline void hwif_setup(ide_hwif_t *hwif)
74{ 74{
75 default_hwif_iops(hwif); 75 default_hwif_iops(hwif);
76 76
77 hwif->mmio = 1;
78 hwif->OUTW = mm_outw; 77 hwif->OUTW = mm_outw;
79 hwif->OUTSW = mm_outsw; 78 hwif->OUTSW = mm_outsw;
80 hwif->INW = mm_inw; 79 hwif->INW = mm_inw;
diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c
index 12de09aaef09..a6073e248f45 100644
--- a/drivers/ide/ide-generic.c
+++ b/drivers/ide/ide-generic.c
@@ -126,7 +126,6 @@ static int __init ide_generic_init(void)
126 ide_std_init_ports(&hw, io_addr, io_addr + 0x206); 126 ide_std_init_ports(&hw, io_addr, io_addr + 0x206);
127 hw.irq = ide_default_irq(io_addr); 127 hw.irq = ide_default_irq(io_addr);
128 ide_init_port_hw(hwif, &hw); 128 ide_init_port_hw(hwif, &hw);
129 hwif->mmio = 1;
130 129
131 idx[i] = i; 130 idx[i] = i;
132 } 131 }
diff --git a/drivers/ide/ide-pnp.c b/drivers/ide/ide-pnp.c
index a0b7d170ecdb..10c20e9a5785 100644
--- a/drivers/ide/ide-pnp.c
+++ b/drivers/ide/ide-pnp.c
@@ -63,7 +63,6 @@ static int idepnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
63 63
64 ide_init_port_data(hwif, index); 64 ide_init_port_data(hwif, index);
65 ide_init_port_hw(hwif, &hw); 65 ide_init_port_hw(hwif, &hw);
66 hwif->mmio = 1;
67 66
68 printk(KERN_INFO "ide%d: generic PnP IDE interface\n", index); 67 printk(KERN_INFO "ide%d: generic PnP IDE interface\n", index);
69 pnp_set_drvdata(dev, hwif); 68 pnp_set_drvdata(dev, hwif);
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 4a8a482b43a3..c2cdeefb016c 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1661,7 +1661,6 @@ static void ide_legacy_init_one(u8 *idx, hw_regs_t *hw, u8 port_no,
1661 hwif = ide_find_port_slot(d); 1661 hwif = ide_find_port_slot(d);
1662 if (hwif) { 1662 if (hwif) {
1663 ide_init_port_hw(hwif, hw); 1663 ide_init_port_hw(hwif, hw);
1664 hwif->mmio = 1;
1665 if (config) 1664 if (config)
1666 hwif->config_data = config; 1665 hwif->config_data = config;
1667 idx[port_no] = hwif->index; 1666 idx[port_no] = hwif->index;
diff --git a/drivers/ide/legacy/buddha.c b/drivers/ide/legacy/buddha.c
index 6956eb8f2d5f..f51433bce8e4 100644
--- a/drivers/ide/legacy/buddha.c
+++ b/drivers/ide/legacy/buddha.c
@@ -228,8 +228,6 @@ fail_base2:
228 ide_init_port_data(hwif, index); 228 ide_init_port_data(hwif, index);
229 ide_init_port_hw(hwif, &hw); 229 ide_init_port_hw(hwif, &hw);
230 230
231 hwif->mmio = 1;
232
233 idx[i] = index; 231 idx[i] = index;
234 } 232 }
235 } 233 }
diff --git a/drivers/ide/legacy/falconide.c b/drivers/ide/legacy/falconide.c
index 8c9c9f7f54ca..5c19c422c5cc 100644
--- a/drivers/ide/legacy/falconide.c
+++ b/drivers/ide/legacy/falconide.c
@@ -89,7 +89,6 @@ static int __init falconide_init(void)
89 89
90 ide_init_port_data(hwif, index); 90 ide_init_port_data(hwif, index);
91 ide_init_port_hw(hwif, &hw); 91 ide_init_port_hw(hwif, &hw);
92 hwif->mmio = 1;
93 92
94 ide_get_lock(NULL, NULL); 93 ide_get_lock(NULL, NULL);
95 ide_device_add(idx, NULL); 94 ide_device_add(idx, NULL);
diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c
index fcc8d52bf2a1..a0c9601bdaf0 100644
--- a/drivers/ide/legacy/gayle.c
+++ b/drivers/ide/legacy/gayle.c
@@ -182,8 +182,6 @@ found:
182 ide_init_port_data(hwif, index); 182 ide_init_port_data(hwif, index);
183 ide_init_port_hw(hwif, &hw); 183 ide_init_port_hw(hwif, &hw);
184 184
185 hwif->mmio = 1;
186
187 idx[i] = index; 185 idx[i] = index;
188 } else 186 } else
189 release_mem_region(res_start, res_n); 187 release_mem_region(res_start, res_n);
diff --git a/drivers/ide/legacy/ide-4drives.c b/drivers/ide/legacy/ide-4drives.c
index e69566284ab7..17f94d0cb539 100644
--- a/drivers/ide/legacy/ide-4drives.c
+++ b/drivers/ide/legacy/ide-4drives.c
@@ -43,7 +43,6 @@ static int __init ide_4drives_init(void)
43 hwif = ide_find_port(); 43 hwif = ide_find_port();
44 if (hwif) { 44 if (hwif) {
45 ide_init_port_hw(hwif, &hw); 45 ide_init_port_hw(hwif, &hw);
46 hwif->mmio = 1;
47 idx[0] = hwif->index; 46 idx[0] = hwif->index;
48 } 47 }
49 48
@@ -52,7 +51,6 @@ static int __init ide_4drives_init(void)
52 ide_init_port_hw(mate, &hw); 51 ide_init_port_hw(mate, &hw);
53 mate->drives[0].select.all ^= 0x20; 52 mate->drives[0].select.all ^= 0x20;
54 mate->drives[1].select.all ^= 0x20; 53 mate->drives[1].select.all ^= 0x20;
55 mate->mmio = 1;
56 idx[1] = mate->index; 54 idx[1] = mate->index;
57 55
58 if (hwif) { 56 if (hwif) {
diff --git a/drivers/ide/legacy/ide_platform.c b/drivers/ide/legacy/ide_platform.c
index bf240775531e..822f48b05c70 100644
--- a/drivers/ide/legacy/ide_platform.c
+++ b/drivers/ide/legacy/ide_platform.c
@@ -100,7 +100,6 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
100 hw.dev = &pdev->dev; 100 hw.dev = &pdev->dev;
101 101
102 ide_init_port_hw(hwif, &hw); 102 ide_init_port_hw(hwif, &hw);
103 hwif->mmio = 1;
104 103
105 if (mmio) 104 if (mmio)
106 default_hwif_mmiops(hwif); 105 default_hwif_mmiops(hwif);
diff --git a/drivers/ide/legacy/macide.c b/drivers/ide/legacy/macide.c
index 7429b80cb089..26546d0afc7f 100644
--- a/drivers/ide/legacy/macide.c
+++ b/drivers/ide/legacy/macide.c
@@ -128,8 +128,6 @@ static int __init macide_init(void)
128 ide_init_port_data(hwif, index); 128 ide_init_port_data(hwif, index);
129 ide_init_port_hw(hwif, &hw); 129 ide_init_port_hw(hwif, &hw);
130 130
131 hwif->mmio = 1;
132
133 ide_device_add(idx, NULL); 131 ide_device_add(idx, NULL);
134 } 132 }
135 133
diff --git a/drivers/ide/legacy/q40ide.c b/drivers/ide/legacy/q40ide.c
index fcbff0eced1b..f23999dd3d46 100644
--- a/drivers/ide/legacy/q40ide.c
+++ b/drivers/ide/legacy/q40ide.c
@@ -141,7 +141,6 @@ static int __init q40ide_init(void)
141 if (hwif) { 141 if (hwif) {
142 ide_init_port_data(hwif, hwif->index); 142 ide_init_port_data(hwif, hwif->index);
143 ide_init_port_hw(hwif, &hw); 143 ide_init_port_hw(hwif, &hw);
144 hwif->mmio = 1;
145 144
146 idx[i] = hwif->index; 145 idx[i] = hwif->index;
147 } 146 }
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c
index 51dddc0f154e..e539977b3348 100644
--- a/drivers/ide/mips/au1xxx-ide.c
+++ b/drivers/ide/mips/au1xxx-ide.c
@@ -624,8 +624,6 @@ static int au_ide_probe(struct device *dev)
624 624
625 hwif->dev = dev; 625 hwif->dev = dev;
626 626
627 hwif->mmio = 1;
628
629 /* If the user has selected DDMA assisted copies, 627 /* If the user has selected DDMA assisted copies,
630 then set up a few local I/O function entry points 628 then set up a few local I/O function entry points
631 */ 629 */
diff --git a/drivers/ide/mips/swarm.c b/drivers/ide/mips/swarm.c
index 4769ec2ff290..112fe566bb93 100644
--- a/drivers/ide/mips/swarm.c
+++ b/drivers/ide/mips/swarm.c
@@ -110,8 +110,7 @@ static int __devinit swarm_ide_probe(struct device *dev)
110 110
111 /* Setup MMIO ops. */ 111 /* Setup MMIO ops. */
112 default_hwif_mmiops(hwif); 112 default_hwif_mmiops(hwif);
113 /* Prevent resource map manipulation. */ 113
114 hwif->mmio = 1;
115 hwif->chipset = ide_generic; 114 hwif->chipset = ide_generic;
116 115
117 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) 116 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++)
diff --git a/drivers/ide/pci/cmd640.c b/drivers/ide/pci/cmd640.c
index 1a60d7093605..25c2f1bd175f 100644
--- a/drivers/ide/pci/cmd640.c
+++ b/drivers/ide/pci/cmd640.c
@@ -787,7 +787,6 @@ static int __init cmd640x_init(void)
787 */ 787 */
788 if (cmd_hwif0) { 788 if (cmd_hwif0) {
789 ide_init_port_hw(cmd_hwif0, &hw[0]); 789 ide_init_port_hw(cmd_hwif0, &hw[0]);
790 cmd_hwif0->mmio = 1;
791 idx[0] = cmd_hwif0->index; 790 idx[0] = cmd_hwif0->index;
792 } 791 }
793 792
@@ -840,7 +839,6 @@ static int __init cmd640x_init(void)
840 */ 839 */
841 if (second_port_cmd640 && cmd_hwif1) { 840 if (second_port_cmd640 && cmd_hwif1) {
842 ide_init_port_hw(cmd_hwif1, &hw[1]); 841 ide_init_port_hw(cmd_hwif1, &hw[1]);
843 cmd_hwif1->mmio = 1;
844 idx[1] = cmd_hwif1->index; 842 idx[1] = cmd_hwif1->index;
845 } 843 }
846 printk(KERN_INFO "cmd640: %sserialized, secondary interface %s\n", 844 printk(KERN_INFO "cmd640: %sserialized, secondary interface %s\n",
diff --git a/drivers/ide/pci/delkin_cb.c b/drivers/ide/pci/delkin_cb.c
index cb9af61da2ee..c7b7e0483287 100644
--- a/drivers/ide/pci/delkin_cb.c
+++ b/drivers/ide/pci/delkin_cb.c
@@ -93,7 +93,6 @@ delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)
93 ide_init_port_data(hwif, i); 93 ide_init_port_data(hwif, i);
94 94
95 ide_init_port_hw(hwif, &hw); 95 ide_init_port_hw(hwif, &hw);
96 hwif->mmio = 1;
97 hwif->port_ops = &delkin_cb_port_ops; 96 hwif->port_ops = &delkin_cb_port_ops;
98 97
99 idx[0] = i; 98 idx[0] = i;
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c
index 22ac0f70c423..e16597ddbd91 100644
--- a/drivers/ide/pci/sgiioc4.c
+++ b/drivers/ide/pci/sgiioc4.c
@@ -551,7 +551,6 @@ static int sgiioc4_ide_dma_setup(ide_drive_t *drive)
551static void __devinit 551static void __devinit
552ide_init_sgiioc4(ide_hwif_t * hwif) 552ide_init_sgiioc4(ide_hwif_t * hwif)
553{ 553{
554 hwif->mmio = 1;
555 hwif->INB = &sgiioc4_INB; 554 hwif->INB = &sgiioc4_INB;
556 555
557 if (hwif->dma_base == 0) 556 if (hwif->dma_base == 0)
diff --git a/drivers/ide/ppc/mpc8xx.c b/drivers/ide/ppc/mpc8xx.c
index 0fd98489d587..6d62adefd976 100644
--- a/drivers/ide/ppc/mpc8xx.c
+++ b/drivers/ide/ppc/mpc8xx.c
@@ -814,7 +814,6 @@ static int __init mpc8xx_ide_probe(void)
814 ide_hwif_t *hwif = &ide_hwifs[0]; 814 ide_hwif_t *hwif = &ide_hwifs[0];
815 815
816 ide_init_port_hw(hwif, &hw); 816 ide_init_port_hw(hwif, &hw);
817 hwif->mmio = 1;
818 hwif->pio_mask = ATA_PIO4; 817 hwif->pio_mask = ATA_PIO4;
819 hwif->port_ops = &m8xx_port_ops; 818 hwif->port_ops = &m8xx_port_ops;
820 819
@@ -826,7 +825,6 @@ static int __init mpc8xx_ide_probe(void)
826 ide_hwif_t *mate = &ide_hwifs[1]; 825 ide_hwif_t *mate = &ide_hwifs[1];
827 826
828 ide_init_port_hw(mate, &hw); 827 ide_init_port_hw(mate, &hw);
829 mate->mmio = 1;
830 mate->pio_mask = ATA_PIO4; 828 mate->pio_mask = ATA_PIO4;
831 mate->port_ops = &m8xx_port_ops; 829 mate->port_ops = &m8xx_port_ops;
832 830
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c
index 4e0583907413..16869cf95e1a 100644
--- a/drivers/ide/ppc/pmac.c
+++ b/drivers/ide/ppc/pmac.c
@@ -1045,8 +1045,6 @@ pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif, hw_regs_t *hw)
1045 default_hwif_mmiops(hwif); 1045 default_hwif_mmiops(hwif);
1046 hwif->OUTBSYNC = pmac_outbsync; 1046 hwif->OUTBSYNC = pmac_outbsync;
1047 1047
1048 /* Tell common code _not_ to mess with resources */
1049 hwif->mmio = 1;
1050 hwif->hwif_data = pmif; 1048 hwif->hwif_data = pmif;
1051 ide_init_port_hw(hwif, hw); 1049 ide_init_port_hw(hwif, hw);
1052 hwif->cbl = pmif->cable_80 ? ATA_CBL_PATA80 : ATA_CBL_PATA40; 1050 hwif->cbl = pmif->cable_80 ? ATA_CBL_PATA80 : ATA_CBL_PATA40;