summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2023-08-15 17:13:52 +0200
committerDamien Le Moal <dlemoal@kernel.org>2023-08-17 00:45:32 +0200
commit0e1bd497ca372031b5aa37fdffc5cf6d3a796343 (patch)
tree09c3029f89b829d13dfca92556e8cec2973e6bf0 /arch/arm/include
parentata: sata_rcar: Convert to platform remove callback returning void (diff)
downloadlinux-0e1bd497ca372031b5aa37fdffc5cf6d3a796343.tar.xz
linux-0e1bd497ca372031b5aa37fdffc5cf6d3a796343.zip
ata: pata_imx: Use helper function devm_clk_get_enabled()
After the commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared and enabled clocks"), the pair of functions devm_clk_get() and clk_prepare_enable() can be replaced with the single function devm_clk_get_enabled(). Moreover, the driver will keep the clock prepared (or enabled) during the whole lifetime of the device, so it is unnecessary to unprepare and disable the clock explicitly when removing the device or in the error handling path. Signed-off-by: Li Zetao <lizetao1@huawei.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'arch/arm/include')
0 files changed, 0 insertions, 0 deletions