From: Bartlomiej Zolnierkiewicz Date: Tue, 10 Jun 2008 18:56:36 +0000 (+0200) Subject: ide-generic: add missing hwif->chipset setup X-Git-Tag: v2.6.26-rc6~15^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=343a3451e20314d5959b59b992e33fbaadfe52bf;p=linux-2.6 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" Reported-by: Dmitri Vorobiev Reported-by: Mel Gorman Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c index a6073e248f..9134488ac0 100644 --- a/drivers/ide/ide-generic.c +++ b/drivers/ide/ide-generic.c @@ -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;