Subject: linux-next: build failure after merge of the sound-asoc tree

From: Stephen Rothwell <[email-masked]>
Date: Fri, 17 Jul 2015 14:25:01 +1000

Hi all,

After merging the sound-asoc tree, today's linux-next build (powerpc
allyesconfig) failed like this:

sound/soc/sti/sti_uniperif.c: In function 'sti_uniperiph_dai_suspend':
sound/soc/sti/sti_uniperif.c:81:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
  ret = pinctrl_pm_select_sleep_state(uni->dev);
  ^
sound/soc/sti/sti_uniperif.c: In function 'sti_uniperiph_dai_resume':
sound/soc/sti/sti_uniperif.c:102:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
  ret = pinctrl_pm_select_default_state(uni->dev);
  ^

Caused by commit

  f3bd847eb0a7 ("ASoC: sti: Add uniperipheral dai driver")

I have added this fix patch for today:

From: Stephen Rothwell <[email-masked]>
Date: Fri, 17 Jul 2015 14:21:37 +1000
Subject: [PATCH] ASoC: sti: included needed header file

Signed-off-by: Stephen Rothwell <[email-masked]>
---
 sound/soc/sti/sti_uniperif.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c
index 749e6b294184..ab8d36af6dcb 100644
--- a/sound/soc/sti/sti_uniperif.c
+++ b/sound/soc/sti/sti_uniperif.c
@@ -6,6 +6,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/pinctrl/consumer.h>
 
 #include "uniperif.h"
 
-- 
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email-masked]