]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/maps/physmap.c
[MTD] support driver model updates
[linux-2.6-omap-h63xx.git] / drivers / mtd / maps / physmap.c
index 229718222db710e27fc980fb68ca287d9553e99d..29a9011573522abbe7d8b021ddec46182dcfb2d2 100644 (file)
@@ -147,6 +147,7 @@ static int physmap_flash_probe(struct platform_device *dev)
                        devices_found++;
                }
                info->mtd[i]->owner = THIS_MODULE;
+               info->mtd[i]->dev.parent = &dev->dev;
        }
 
        if (devices_found == 1) {