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

Commit 869c56ee authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: add "initializing" argument to ide_register_hw()



Add "initializing" argument to ide_register_hw() and use it instead of ide.c
wide variable of the same name.  Update all users of ide_register_hw()
accordingly.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 7f8f48af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ bastide_register(unsigned int base, unsigned int aux, int irq,
	hw.io_ports[IDE_CONTROL_OFFSET] = aux + (6 * 0x20);
	hw.irq = irq;

	ide_register_hw(&hw, hwif);
	ide_register_hw(&hw, 0, hwif);

	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -38,6 +38,6 @@ void __init ide_arm_init(void)
		memset(&hw, 0, sizeof(hw));
		ide_std_init_ports(&hw, IDE_ARM_IO, IDE_ARM_IO + 0x206);
		hw.irq = IDE_ARM_IRQ;
		ide_register_hw(&hw, NULL);
		ide_register_hw(&hw, 1, NULL);
	}
}
+1 −1
Original line number Diff line number Diff line
@@ -796,7 +796,7 @@ init_e100_ide (void)
		                ide_offsets,
		                0, 0, cris_ide_ack_intr,
		                ide_default_irq(0));
		ide_register_hw(&hw, &hwif);
		ide_register_hw(&hw, 1, &hwif);
		hwif->mmio = 1;
		hwif->chipset = ide_etrax100;
		hwif->tuneproc = &tune_cris_ide;
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ void __init h8300_ide_init(void)
	hw_setup(&hw);

	/* register if */
	idx = ide_register_hw(&hw, &hwif);
	idx = ide_register_hw(&hw, 1, &hwif);
	if (idx == -1) {
		printk(KERN_ERR "ide-h8300: IDE I/F register failed\n");
		return;
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static int idepnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id
	hw.irq = pnp_irq(dev, 0);
	hw.dma = NO_DMA;

	index = ide_register_hw(&hw, &hwif);
	index = ide_register_hw(&hw, 1, &hwif);

	if (index != -1) {
	    	printk(KERN_INFO "ide%d: generic PnP IDE interface\n", index);
Loading