]> Pileus Git - ~andy/linux/commitdiff
au1xxx-ide: device tree bugfix
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:32 +0000 (23:09 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:32 +0000 (23:09 +0100)
Add missing hw.dev setup (so hwif->gendev.parent will be set by
ide_init_port_hw() to point to the parent device).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/mips/au1xxx-ide.c

index ed1a285efe145ea6857255be3b9169d01a89cfb5..b00c71f2aee3a8517bdbc97044a2dbe244f926c4 100644 (file)
@@ -602,6 +602,7 @@ static int au_ide_probe(struct device *dev)
        memset(&hw, 0, sizeof(hw));
        auide_setup_ports(&hw, ahwif);
        hw.irq = ahwif->irq;
+       hw.dev = dev;
        hw.chipset = ide_au1xxx;
 
        ide_init_port_hw(hwif, &hw);