Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Christophe JAILLET <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
- Loading branch information