mtd: rawnand: orion: Use helper function devm_clk_get_optional_enabled()
authorLi Zetao <lizetao1@huawei.com>
Mon, 21 Aug 2023 03:17:37 +0000 (11:17 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Aug 2023 07:44:23 +0000 (09:44 +0200)
commit2c11ea7bee3126f89d0e1b6fec0956b20017ce83
tree176484a350574d583c84ee1a4d692be7903151d5
parent4195b6420b43808ad2f984b345cb90a2842817c4
mtd: rawnand: orion: Use helper function devm_clk_get_optional_enabled()

Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get_optional() and clk_prepare_enable() can
now be replaced by devm_clk_get_optional_enabled() when driver enables
(and possibly prepares) the clocks for the whole lifetime of the device.
Moreover, it is no longer necessary to unprepare and disable the clocks
explicitly, so drop the label "no_dev".

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230821031737.1973183-13-lizetao1@huawei.com
drivers/mtd/nand/raw/orion_nand.c