mtd: rawnand: renesas: Use runtime PM instead of the raw clock API
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 13 May 2022 10:49:57 +0000 (12:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 May 2022 16:36:21 +0000 (18:36 +0200)
commit6a2277a0ebe71b45e1d5508a2d7aecd28c98e3d3
tree689919b503859f2beaa2b805cad54f9827a07821
parent431cbce8495551ff433c9a4225afbf8ea5270d23
mtd: rawnand: renesas: Use runtime PM instead of the raw clock API

This NAND controller is part of a well defined power domain handled by
the runtime PM core. Let's keep the harmony with the other RZ/N1 drivers
and exclusively use the runtime PM API to enable/disable the clocks.

We still need to retrieve the external clock rate in order to derive the
NAND timings, but that is not a big deal, we can still do that in the
probe and just save this value to reuse it later.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/linux-mtd/20220513104957.257721-3-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/renesas-nand-controller.c