[PATCH] ASoC: max98357a: Fix missing include

From: Vincent StehlÃ
Date: Wed Feb 11 2015 - 17:12:06 EST


This fixes the following compilation errors:

sound/soc/codecs/max98357a.c: In function âmax98357a_daiops_triggerâ:
sound/soc/codecs/max98357a.c:30:3: error: implicit declaration of function âgpiod_set_valueâ [-Werror=implicit-function-declaration]
sound/soc/codecs/max98357a.c: In function âmax98357a_codec_probeâ:
sound/soc/codecs/max98357a.c:55:2: error: implicit declaration of function âdevm_gpiod_getâ [-Werror=implicit-function-declaration]
sound/soc/codecs/max98357a.c:61:2: error: implicit declaration of function âgpiod_direction_outputâ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

Signed-off-by: Vincent Stehlà <vincent.stehle@xxxxxxxxxxx>
Cc: Kenneth Westfield <kwestfie@xxxxxxxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
---


Hi,

Those compilation errors can be seen for example with hppa allmodconfig.

Best regards,

V.


sound/soc/codecs/max98357a.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c
index 1806333..f493fb6 100644
--- a/sound/soc/codecs/max98357a.c
+++ b/sound/soc/codecs/max98357a.c
@@ -14,6 +14,7 @@

#include <linux/module.h>
#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
#include <sound/soc.h>

#define DRV_NAME "max98357a"
--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/