diff options
author | Li Zetao <lizetao1@huawei.com> | 2023-08-21 11:17:34 +0800 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-08-21 09:39:30 +0200 |
commit | a95da2721268e237eab6b2eeb9c6d117943d642f (patch) | |
tree | 5b43c454b50bd2063b5c8b5e4e1290c797bb252f /drivers/perf | |
parent | 7ec53e2beb98201baeb834cde52f0e6d60baf1a8 (diff) | |
download | linux-stable-a95da2721268e237eab6b2eeb9c6d117943d642f.tar.gz linux-stable-a95da2721268e237eab6b2eeb9c6d117943d642f.tar.bz2 linux-stable-a95da2721268e237eab6b2eeb9c6d117943d642f.zip |
mtd: rawnand: sunxi: Use helper function devm_clk_get_enabled()
Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_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 "out_mod_clk_unprepare" and "out_ahb_clk_unprepare".
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-10-lizetao1@huawei.com
Diffstat (limited to 'drivers/perf')
0 files changed, 0 insertions, 0 deletions