Skip to contentSkip to conversation

au1xxx-ide: device tree bugfix

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 1 message Dec 30, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 au1xxx-ide: device tree bugfix

Add missing hw.dev setup (so hwif->gendev.parent will be set by ide_init_port_hw() to point to the parent device).

---
 drivers/ide/mips/au1xxx-ide.c |    1 +
 1 file changed, 1 insertion(+)
drivers/ide/mips/au1xxx-ide.c +1 -0
Index: b/drivers/ide/mips/au1xxx-ide.c
===================================================================
@@ -602,6 +602,7 @@ static int au_ide_probe(struct device *d
 	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);