File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
5858 ssc -> user ++ ;
5959 spin_unlock (& user_lock );
6060
61- clk_enable (ssc -> clk );
61+ clk_prepare_enable (ssc -> clk );
6262
6363 return ssc ;
6464}
@@ -69,7 +69,7 @@ void ssc_free(struct ssc_device *ssc)
6969 spin_lock (& user_lock );
7070 if (ssc -> user ) {
7171 ssc -> user -- ;
72- clk_disable (ssc -> clk );
72+ clk_disable_unprepare (ssc -> clk );
7373 } else {
7474 dev_dbg (& ssc -> pdev -> dev , "device already free\n" );
7575 }
@@ -167,10 +167,10 @@ static int ssc_probe(struct platform_device *pdev)
167167 }
168168
169169 /* disable all interrupts */
170- clk_enable (ssc -> clk );
170+ clk_prepare_enable (ssc -> clk );
171171 ssc_writel (ssc -> regs , IDR , -1 );
172172 ssc_readl (ssc -> regs , SR );
173- clk_disable (ssc -> clk );
173+ clk_disable_unprepare (ssc -> clk );
174174
175175 ssc -> irq = platform_get_irq (pdev , 0 );
176176 if (!ssc -> irq ) {
Original file line number Diff line number Diff line change 3838#include <linux/platform_device.h>
3939#include <linux/i2c.h>
4040
41- #include <linux/pinctrl/consumer.h>
42-
4341#include <linux/atmel-ssc.h>
4442
4543#include <sound/core.h>
@@ -203,15 +201,8 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
203201 struct device_node * codec_np , * cpu_np ;
204202 struct clk * pllb ;
205203 struct snd_soc_card * card = & snd_soc_at91sam9g20ek ;
206- struct pinctrl * pinctrl ;
207204 int ret ;
208205
209- pinctrl = devm_pinctrl_get_select_default (& pdev -> dev );
210- if (IS_ERR (pinctrl )) {
211- dev_err (& pdev -> dev , "Failed to request pinctrl for mck\n" );
212- return PTR_ERR (pinctrl );
213- }
214-
215206 if (!np ) {
216207 if (!(machine_is_at91sam9g20ek () ||
217208 machine_is_at91sam9g20ek_2mmc ()))
You can’t perform that action at this time.
0 commit comments