OSDN Git Service

mtd: rawnand: fsl_upm: Use gpio descriptors
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jun 2020 13:49:18 +0000 (15:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:09 +0000 (08:35 +0200)
commita50895bbdbd433173c698c4a2321b0f02ff19ba1
treecd21c9f5475fd337c8daf4f95a79ca1c7f9999d1
parent58c5a0e04dfceb1c64c84553bc909d1aa39a3bd5
mtd: rawnand: fsl_upm: Use gpio descriptors

The integer-based GPIO ids are now deprecated in favor of the GPIO desc
API. The PPC platforms have already been converted to GPIOLIB, so let's
use gpio descs in the NAND driver too.

While at it, we use devm_gpiod_get_index_optional() so we can get rid
of the manual gpio desc release done in the init error path and in the
remove function.

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