diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-09-24 05:33:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-07 12:52:42 -0500 |
commit | 49af54ff0fc7abb6457caed982ddfcfda487e3f7 (patch) | |
tree | 77778b643bd4fefc53b590b87b9c4a2831cd817a /drivers/misc/atmel-ssc.c | |
parent | d512c2098b1af6069e47ca457d7034d7cc82d420 (diff) |
misc: atmel-ssc: prepare clock only when request
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>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/atmel-ssc.c')
-rw-r--r-- | drivers/misc/atmel-ssc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 60843a275abd..f9807a76bbc7 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) | |||
57 | ssc->user++; | 57 | ssc->user++; |
58 | spin_unlock(&user_lock); | 58 | spin_unlock(&user_lock); |
59 | 59 | ||
60 | clk_prepare_enable(ssc->clk); | 60 | clk_prepare(ssc->clk); |
61 | 61 | ||
62 | return ssc; | 62 | return ssc; |
63 | } | 63 | } |
@@ -77,7 +77,7 @@ void ssc_free(struct ssc_device *ssc) | |||
77 | spin_unlock(&user_lock); | 77 | spin_unlock(&user_lock); |
78 | 78 | ||
79 | if (disable_clk) | 79 | if (disable_clk) |
80 | clk_disable_unprepare(ssc->clk); | 80 | clk_unprepare(ssc->clk); |
81 | } | 81 | } |
82 | EXPORT_SYMBOL(ssc_free); | 82 | EXPORT_SYMBOL(ssc_free); |
83 | 83 | ||