[MTD] [NAND] Add parent info for CAFÉ controller
[safe/jmp/linux-2.6] / drivers / mtd / nand / cafe_nand.c
index 22a6b2e..7c5b257 100644 (file)
@@ -654,6 +654,7 @@ static int __devinit cafe_nand_probe(struct pci_dev *pdev,
        }
        cafe = (void *)(&mtd[1]);
 
+       mtd->dev.parent = &pdev->dev;
        mtd->priv = cafe;
        mtd->owner = THIS_MODULE;