]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/mtd/maps/physmap_of.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[net-next-2.6.git] / drivers / mtd / maps / physmap_of.c
index 101ee6ead05c16af55f34434df390ba859bcd27b..bbdd219419051d43799b3108a7269b27f6054677 100644 (file)
@@ -218,7 +218,7 @@ static int __devinit of_flash_probe(struct of_device *dev,
 
        dev_set_drvdata(&dev->dev, info);
 
-       mtd_list = kzalloc(sizeof(struct mtd_info) * count, GFP_KERNEL);
+       mtd_list = kzalloc(sizeof(*mtd_list) * count, GFP_KERNEL);
        if (!mtd_list)
                goto err_flash_remove;