aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorGravatar Li Zetao <lizetao1@huawei.com> 2023-08-15 23:13:52 +0800
committerGravatar Damien Le Moal <dlemoal@kernel.org> 2023-08-17 07:45:32 +0900
commit0e1bd497ca372031b5aa37fdffc5cf6d3a796343 (patch)
tree09c3029f89b829d13dfca92556e8cec2973e6bf0 /arch/arm/include
parentata: sata_rcar: Convert to platform remove callback returning void (diff)
downloadlinux-0e1bd497ca372031b5aa37fdffc5cf6d3a796343.tar.gz
linux-0e1bd497ca372031b5aa37fdffc5cf6d3a796343.tar.bz2
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