Skip to content

Commit 343a345

Browse files
committed
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: "John Keller" <jpk@sgi.com> Reported-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> Reported-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent cd18f69 commit 343a345

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/ide/ide-generic.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static int __init ide_generic_init(void)
125125
memset(&hw, 0, sizeof(hw));
126126
ide_std_init_ports(&hw, io_addr, io_addr + 0x206);
127127
hw.irq = ide_default_irq(io_addr);
128+
hw.chipset = ide_generic;
128129
ide_init_port_hw(hwif, &hw);
129130

130131
idx[i] = i;

0 commit comments

Comments
 (0)