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

Commit 343a3451 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide-generic: add missing hwif->chipset setup



hwif->chipset need to be set properly or ide-generic driver will break once
we make a final step in fixing host drivers' dependence on ide_hwifs[].

Problem was catched early thanks to IDE tree exposure in -mm / -next trees
and reported by people listed people (thank you guys!).

Reported-by: default avatar"John Keller" <jpk@sgi.com>
Reported-by: default avatarDmitri Vorobiev <dmitri.vorobiev@gmail.com>
Reported-by: default avatarMel Gorman <mel@csn.ul.ie>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent cd18f69f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ static int __init ide_generic_init(void)
			memset(&hw, 0, sizeof(hw));
			ide_std_init_ports(&hw, io_addr, io_addr + 0x206);
			hw.irq = ide_default_irq(io_addr);
			hw.chipset = ide_generic;
			ide_init_port_hw(hwif, &hw);

			idx[i] = i;