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

ASoC: mxs: mxs-saif: Let device core handle pinctrl

Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
we can rely on device core for handling pinctrl.

So remove devm_pinctrl_get_select_default() from the driver.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Fabio Estevam and committed by
Mark Brown
e76af6d1 f722406f

-8
-8
sound/soc/mxs/mxs-saif.c
··· 27 27 #include <linux/delay.h> 28 28 #include <linux/time.h> 29 29 #include <linux/fsl/mxs-dma.h> 30 - #include <linux/pinctrl/consumer.h> 31 30 #include <sound/core.h> 32 31 #include <sound/pcm.h> 33 32 #include <sound/pcm_params.h> ··· 666 667 struct device_node *np = pdev->dev.of_node; 667 668 struct resource *iores, *dmares; 668 669 struct mxs_saif *saif; 669 - struct pinctrl *pinctrl; 670 670 int ret = 0; 671 671 struct device_node *master; 672 672 ··· 704 706 } 705 707 706 708 mxs_saif[saif->id] = saif; 707 - 708 - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); 709 - if (IS_ERR(pinctrl)) { 710 - ret = PTR_ERR(pinctrl); 711 - return ret; 712 - } 713 709 714 710 saif->clk = devm_clk_get(&pdev->dev, NULL); 715 711 if (IS_ERR(saif->clk)) {