OSDN Git Service

mtd: rawnand: fsl_upm: Use devm_kasprintf() to allocate the MTD name
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jun 2020 13:49:16 +0000 (15:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:09 +0000 (08:35 +0200)
commit0016648cdc45eea00bd585ccb4b2596784f60615
tree4bf32ea6eb3e24d2455da9412449cf5bfab1bd3e
parentf760bf29f8676b67fda766d3cf1dbc2fe79829e6
mtd: rawnand: fsl_upm: Use devm_kasprintf() to allocate the MTD name

This simplifies the init() error path and the remove() handler.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200603134922.1352340-5-boris.brezillon@collabora.com
drivers/mtd/nand/raw/fsl_upm.c