# Re: \[PATCH 06/10\] mtd: rawnand: fsl\_upm: Use gpio descriptors

- From: Miquel Raynal \<miquel.raynal@bootlin.com\>
- Date: 2020-06-15 09:09:44 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/06/9516844
- Thread: https://ratatoskr.run/linuxppc-dev/2020/06/9516502/t.md

```text
On Wed, 2020-06-03 at 13:49:18 UTC, Boris Brezillon wrote:
> 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>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel
```
