Merge tag 'sound-fix-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-block.git] / drivers / mtd / devices / powernv_flash.c
index 33593122e49b89646387d7c278ffc96ee1a593d9..22f753e555ac50b9922a282dd42c41fc99ee1128 100644 (file)
@@ -212,7 +212,7 @@ static int powernv_flash_set_driver_info(struct device *dev,
         * Going to have to check what details I need to set and how to
         * get them
         */
-       mtd->name = of_get_property(dev->of_node, "name", NULL);
+       mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node);
        mtd->type = MTD_NORFLASH;
        mtd->flags = MTD_WRITEABLE;
        mtd->size = size;