mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
mfd: jz4740-adc: Use clk_prepare_enable/clk_disable_unprepare
In preparation to switching the jz4740 clk driver to the common clk framework update the clk enable/disable calls to clk_prepare_enable/clk_disable_unprepare. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
c0fa7e104b
commit
404d5df42a
1 changed files with 2 additions and 2 deletions
|
@ -86,13 +86,13 @@ static void jz4740_adc_irq_demux(unsigned int irq, struct irq_desc *desc)
|
||||||
static inline void jz4740_adc_clk_enable(struct jz4740_adc *adc)
|
static inline void jz4740_adc_clk_enable(struct jz4740_adc *adc)
|
||||||
{
|
{
|
||||||
if (atomic_inc_return(&adc->clk_ref) == 1)
|
if (atomic_inc_return(&adc->clk_ref) == 1)
|
||||||
clk_enable(adc->clk);
|
clk_prepare_enable(adc->clk);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void jz4740_adc_clk_disable(struct jz4740_adc *adc)
|
static inline void jz4740_adc_clk_disable(struct jz4740_adc *adc)
|
||||||
{
|
{
|
||||||
if (atomic_dec_return(&adc->clk_ref) == 0)
|
if (atomic_dec_return(&adc->clk_ref) == 0)
|
||||||
clk_disable(adc->clk);
|
clk_disable_unprepare(adc->clk);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void jz4740_adc_set_enabled(struct jz4740_adc *adc, int engine,
|
static inline void jz4740_adc_set_enabled(struct jz4740_adc *adc, int engine,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue