Message ID | 1411549019-12663-1-git-send-email-voice.shen@atmel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Sep 24, 2014 at 04:56:59PM +0800, Bo Shen wrote: > Prepare SSC clock only when request SSC channel, the clock will be > enabled when initialize the SSC. You should send this to the drivers/misc maintainer.
Hi Mark, On 09/24/2014 05:07 PM, Mark Brown wrote: > On Wed, Sep 24, 2014 at 04:56:59PM +0800, Bo Shen wrote: >> Prepare SSC clock only when request SSC channel, the clock will be >> enabled when initialize the SSC. > > You should send this to the drivers/misc maintainer. Thanks, it has been done. Best Regards, Bo Shen
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 60843a2..f9807a7 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -57,7 +57,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num) ssc->user++; spin_unlock(&user_lock); - clk_prepare_enable(ssc->clk); + clk_prepare(ssc->clk); return ssc; } @@ -77,7 +77,7 @@ void ssc_free(struct ssc_device *ssc) spin_unlock(&user_lock); if (disable_clk) - clk_disable_unprepare(ssc->clk); + clk_unprepare(ssc->clk); } EXPORT_SYMBOL(ssc_free);
Prepare SSC clock only when request SSC channel, the clock will be enabled when initialize the SSC. Signed-off-by: Bo Shen <voice.shen@atmel.com> --- drivers/misc/atmel-ssc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)