* [PATCH v2] ARM: shmobile: only select sound drivers that build
@ 2015-05-19 13:40 Arnd Bergmann
2015-05-20 2:18 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2015-05-19 13:40 UTC (permalink / raw)
To: linux-arm-kernel
A couple of codec drivers are selected by shmobile platform code,
but depend on I2C, which results in a build error:
sound/soc/codecs/ak4642.c:638:1: warning: data definition has no type or storage class
module_i2c_driver(ak4642_i2c_driver);
^
sound/soc/codecs/ak4642.c:638:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
sound/soc/codecs/ak4642.c:638:1: warning: parameter names (without types) in function declaration
sound/soc/codecs/ak4642.c:627:26: warning: 'ak4642_i2c_driver' defined but not used [-Wunused-variable]
This ensures that we do not enable the respective drivers when I2C
is disabled.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
----
v2: removed incorrect change for SND_SOC_AK4554, as pointed out by Geert
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 679b866399f2..c4cb4b590d47 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -150,7 +150,7 @@ config MACH_ARMADILLO800EVA
select ARCH_REQUIRE_GPIOLIB
select REGULATOR_FIXED_VOLTAGE if REGULATOR
select SMSC_PHY if SH_ETH
- select SND_SOC_WM8978 if SND_SIMPLE_CARD
+ select SND_SOC_WM8978 if SND_SIMPLE_CARD && I2C
select USE_OF
config MACH_BOCKW
@@ -159,7 +159,7 @@ config MACH_BOCKW
select ARCH_REQUIRE_GPIOLIB
select REGULATOR_FIXED_VOLTAGE if REGULATOR
select SND_SOC_AK4554 if SND_SIMPLE_CARD
- select SND_SOC_AK4642 if SND_SIMPLE_CARD
+ select SND_SOC_AK4642 if SND_SIMPLE_CARD && I2C
select USE_OF
config MACH_BOCKW_REFERENCE
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] ARM: shmobile: only select sound drivers that build
2015-05-19 13:40 [PATCH v2] ARM: shmobile: only select sound drivers that build Arnd Bergmann
@ 2015-05-20 2:18 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2015-05-20 2:18 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, May 19, 2015 at 03:40:37PM +0200, Arnd Bergmann wrote:
> A couple of codec drivers are selected by shmobile platform code,
> but depend on I2C, which results in a build error:
>
> sound/soc/codecs/ak4642.c:638:1: warning: data definition has no type or storage class
> module_i2c_driver(ak4642_i2c_driver);
> ^
> sound/soc/codecs/ak4642.c:638:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
> sound/soc/codecs/ak4642.c:638:1: warning: parameter names (without types) in function declaration
> sound/soc/codecs/ak4642.c:627:26: warning: 'ak4642_i2c_driver' defined but not used [-Wunused-variable]
>
> This ensures that we do not enable the respective drivers when I2C
> is disabled.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Arnd,
I have queued this up as a fix for v4.1.
> ----
> v2: removed incorrect change for SND_SOC_AK4554, as pointed out by Geert
>
> diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
> index 679b866399f2..c4cb4b590d47 100644
> --- a/arch/arm/mach-shmobile/Kconfig
> +++ b/arch/arm/mach-shmobile/Kconfig
> @@ -150,7 +150,7 @@ config MACH_ARMADILLO800EVA
> select ARCH_REQUIRE_GPIOLIB
> select REGULATOR_FIXED_VOLTAGE if REGULATOR
> select SMSC_PHY if SH_ETH
> - select SND_SOC_WM8978 if SND_SIMPLE_CARD
> + select SND_SOC_WM8978 if SND_SIMPLE_CARD && I2C
> select USE_OF
>
> config MACH_BOCKW
> @@ -159,7 +159,7 @@ config MACH_BOCKW
> select ARCH_REQUIRE_GPIOLIB
> select REGULATOR_FIXED_VOLTAGE if REGULATOR
> select SND_SOC_AK4554 if SND_SIMPLE_CARD
> - select SND_SOC_AK4642 if SND_SIMPLE_CARD
> + select SND_SOC_AK4642 if SND_SIMPLE_CARD && I2C
> select USE_OF
>
> config MACH_BOCKW_REFERENCE
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-20 2:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 13:40 [PATCH v2] ARM: shmobile: only select sound drivers that build Arnd Bergmann
2015-05-20 2:18 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).