Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: atmel-ssc: add pinctrl selection to driver

Add default pinctrl selection to atmel-ssc driver. The pinctrl
is mandatory.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
[nicolas.ferre@atmel.com: split dtsi and driver changes]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Bo Shen and committed by
Mark Brown
ea03c815 544ae6b2

+8
+8
drivers/misc/atmel-ssc.c
··· 19 19 #include <linux/module.h> 20 20 21 21 #include <linux/of.h> 22 + #include <linux/pinctrl/consumer.h> 22 23 23 24 /* Serialize access to ssc_list and user count */ 24 25 static DEFINE_SPINLOCK(user_lock); ··· 132 131 struct resource *regs; 133 132 struct ssc_device *ssc; 134 133 const struct atmel_ssc_platform_data *plat_dat; 134 + struct pinctrl *pinctrl; 135 + 136 + pinctrl = devm_pinctrl_get_select_default(&pdev->dev); 137 + if (IS_ERR(pinctrl)) { 138 + dev_err(&pdev->dev, "Failed to request pinctrl\n"); 139 + return PTR_ERR(pinctrl); 140 + } 135 141 136 142 ssc = devm_kzalloc(&pdev->dev, sizeof(struct ssc_device), GFP_KERNEL); 137 143 if (!ssc) {