summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-hyperv-intf.c
diff options
context:
space:
mode:
authorHuan Yang <link@vivo.com>2024-08-22 09:59:55 +0800
committerJassi Brar <jassisinghbrar@gmail.com>2024-09-22 19:19:17 -0500
commit0d97651b7577148242571b8692aae4a8b9ee0979 (patch)
treeb48a5084bca1956fdb1d9ecfb07400d390cb206c /drivers/pci/controller/pci-hyperv-intf.c
parente92d87c9c5d769e4cb1dd7c90faa38dddd7e52e3 (diff)
mailbox: sprd: Use devm_clk_get_enabled() helpers
The devm_clk_get_enabled() helpers: - call devm_clk_get() - call clk_prepare_enable() and register what is needed in order to call clk_disable_unprepare() when needed, as a managed resource. This simplifies the code and avoids the calls to clk_disable_unprepare(). Due to clk only used in probe, not in suspend\resume, this pointer can remove from sprd_mbox_priv to save a little memory. Signed-off-by: Huan Yang <link@vivo.com> Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'drivers/pci/controller/pci-hyperv-intf.c')
0 files changed, 0 insertions, 0 deletions