mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ASoC: mxs-saif: adopt pinctrl support
Cc: alsa-devel@alsa-project.org Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
d98d033c15
commit
f755865f90
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include <linux/delay.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/fsl/mxs-dma.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <sound/core.h>
|
||||
#include <sound/pcm.h>
|
||||
#include <sound/pcm_params.h>
|
||||
|
@ -625,6 +626,7 @@ static int mxs_saif_probe(struct platform_device *pdev)
|
|||
struct resource *iores, *dmares;
|
||||
struct mxs_saif *saif;
|
||||
struct mxs_saif_platform_data *pdata;
|
||||
struct pinctrl *pinctrl;
|
||||
int ret = 0;
|
||||
|
||||
if (pdev->id >= ARRAY_SIZE(mxs_saif))
|
||||
|
@ -650,6 +652,12 @@ static int mxs_saif_probe(struct platform_device *pdev)
|
|||
saif->master_id = saif->id;
|
||||
}
|
||||
|
||||
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
|
||||
if (IS_ERR(pinctrl)) {
|
||||
ret = PTR_ERR(pinctrl);
|
||||
return ret;
|
||||
}
|
||||
|
||||
saif->clk = clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(saif->clk)) {
|
||||
ret = PTR_ERR(saif->clk);
|
||||
|
|
Loading…
Reference in a new issue