mtd: Use mtd->name when registering nvmem device
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 11 Feb 2019 13:33:37 +0000 (19:03 +0530)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 13 Feb 2019 13:10:22 +0000 (14:10 +0100)
commit6e9526852fad7eb77b7755114951237312258ec7
treed9057d8d657f3c3ac0b09481ccf6692398e2c41b
parentd13937116f1e82bf508a6325111b322c30c85eb9
mtd: Use mtd->name when registering nvmem device

With this patch, we use the mtd->name instead of concatenating the name
with '0'.

Fixes: c4dfa25ab307 ("mtd: add support for reading MTD devices via the nvmem API")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/mtd/mtdcore.c