Commit 4823cd38 authored by Philipp Zabel's avatar Philipp Zabel Committed by David S. Miller

net/irda: add clk_prepare/clk_unprepare to pxaficp_ir

This patch adds clk_prepare/clk_unprepare calls to the pxaficp_ir
driver by using the helper functions clk_prepare_enable and
clk_disable_unprepare.
Signed-off-by: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 124d37e9
...@@ -128,20 +128,20 @@ struct pxa_irda { ...@@ -128,20 +128,20 @@ struct pxa_irda {
static inline void pxa_irda_disable_clk(struct pxa_irda *si) static inline void pxa_irda_disable_clk(struct pxa_irda *si)
{ {
if (si->cur_clk) if (si->cur_clk)
clk_disable(si->cur_clk); clk_disable_unprepare(si->cur_clk);
si->cur_clk = NULL; si->cur_clk = NULL;
} }
static inline void pxa_irda_enable_firclk(struct pxa_irda *si) static inline void pxa_irda_enable_firclk(struct pxa_irda *si)
{ {
si->cur_clk = si->fir_clk; si->cur_clk = si->fir_clk;
clk_enable(si->fir_clk); clk_prepare_enable(si->fir_clk);
} }
static inline void pxa_irda_enable_sirclk(struct pxa_irda *si) static inline void pxa_irda_enable_sirclk(struct pxa_irda *si)
{ {
si->cur_clk = si->sir_clk; si->cur_clk = si->sir_clk;
clk_enable(si->sir_clk); clk_prepare_enable(si->sir_clk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment