mtd: st_spi_fsm: Use the devm_clk_get_enabled() helper function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 16 Apr 2023 09:16:36 +0000 (11:16 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 22 May 2023 15:52:16 +0000 (17:52 +0200)
commita2c2690f0d747c973c6a384ab8cd88faa806e5a5
treeb60d63e092641cc3f222d81a4e58a7705135fb60
parentac9a78681b921877518763ba0e89202254349d1b
mtd: st_spi_fsm: Use the devm_clk_get_enabled() helper function

Use the devm_clk_get_enabled() helper function instead of hand-writing it.
It saves some line of codes.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/4025ec3980a956b0e776024e88ec960afc457501.1681636580.git.christophe.jaillet@wanadoo.fr
drivers/mtd/devices/st_spi_fsm.c