Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dd89a9b authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 5add2224
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ static int __init bastide_register(unsigned int base, unsigned int aux, int irq)
		ide_init_port_data(hwif, i);

	ide_init_port_hw(hwif, &hw);
	hwif->mmio = 1;
	hwif->port_ops = NULL;

	idx[0] = i;
+0 −1
Original line number Diff line number Diff line
@@ -416,7 +416,6 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e
		 * Ensure we're using MMIO
		 */
		default_hwif_mmiops(hwif);
		hwif->mmio = 1;

		for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
			hwif->io_ports[i] = port;
+0 −1
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ static int __init ide_arm_init(void)
	hwif = ide_find_port();
	if (hwif) {
		ide_init_port_hw(hwif, &hw);
		hwif->mmio = 1;
		idx[0] = hwif->index;

		ide_device_add(idx, NULL);
+0 −1
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)

		ide_init_port_hw(hwif, &hw);

		hwif->mmio = 1;
		default_hwif_mmiops(hwif);

		idx[0] = hwif->index;
+1 −1
Original line number Diff line number Diff line
@@ -815,7 +815,7 @@ static int __init init_e100_ide(void)
			continue;
		ide_init_port_data(hwif, hwif->index);
		ide_init_port_hw(hwif, &hw);
		hwif->mmio = 1;

		hwif->ata_input_data = &cris_ide_input_data;
		hwif->ata_output_data = &cris_ide_output_data;
		hwif->atapi_input_bytes = &cris_atapi_input_bytes;
Loading