Skip to content

Commit 7d9d592

Browse files
committed
Merge tag 'mtd/fixes-for-5.0-rc8' of git://git.infradead.org/linux-mtd
Pull MTD fixes from Boris Brezillon: - Don't add a digit to MTD-backed nvmem device names - Make sure powernv flash names are unique * tag 'mtd/fixes-for-5.0-rc8' of git://git.infradead.org/linux-mtd: mtd: powernv_flash: Fix device registration error mtd: Use mtd->name when registering nvmem device
2 parents 1f5a018 + 3e35730 commit 7d9d592

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/mtd/devices/powernv_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static int powernv_flash_set_driver_info(struct device *dev,
212212
* Going to have to check what details I need to set and how to
213213
* get them
214214
*/
215-
mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node);
215+
mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFP", dev->of_node);
216216
mtd->type = MTD_NORFLASH;
217217
mtd->flags = MTD_WRITEABLE;
218218
mtd->size = size;

drivers/mtd/mtdcore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ static int mtd_nvmem_add(struct mtd_info *mtd)
507507
{
508508
struct nvmem_config config = {};
509509

510+
config.id = -1;
510511
config.dev = &mtd->dev;
511512
config.name = mtd->name;
512513
config.owner = THIS_MODULE;

0 commit comments

Comments
 (0)