ASoC: ingenic: Unconditionally depend on devicetree
Subsystems (3)
Paul Cercueil
maintainerPATCH 1/1 ASoC: ingenic: Unconditionally depend on devicetree
All boards with Ingenic SoCs probe with devicetree already, we have no use for a non-devicetree path.
This solves some compilation warnings that were caused by unused variables in the case where CONFIG_OF was disabled.
--- sound/soc/codecs/Kconfig | 3 +++ sound/soc/codecs/jz4725b.c | 4 +--- sound/soc/codecs/jz4740.c | 4 +--- sound/soc/codecs/jz4770.c | 2 +- sound/soc/jz4740/Kconfig | 2 +- sound/soc/jz4740/jz4740-i2s.c | 4 +--- 6 files changed, 8 insertions(+), 11 deletions(-)
sound/soc/codecs/Kconfig +3 -0
@@ -681,6 +681,7 @@ config SND_SOC_CX2072X config SND_SOC_JZ4740_CODEC depends on MIPS || COMPILE_TEST + depends on OF select REGMAP_MMIO tristate "Ingenic JZ4740 internal CODEC" help
@@ -692,6 +693,7 @@ config SND_SOC_JZ4740_CODEC config SND_SOC_JZ4725B_CODEC depends on MIPS || COMPILE_TEST + depends on OF select REGMAP tristate "Ingenic JZ4725B internal CODEC" help
@@ -703,6 +705,7 @@ config SND_SOC_JZ4725B_CODEC config SND_SOC_JZ4770_CODEC depends on MIPS || COMPILE_TEST + depends on OF select REGMAP tristate "Ingenic JZ4770 internal CODEC" help
sound/soc/codecs/jz4725b.c +1 -3
@@ -574,19 +574,17 @@ static int jz4725b_codec_probe(struct platform_device *pdev)return ret; } -#ifdef CONFIG_OF static const struct of_device_id jz4725b_codec_of_matches[] = { { .compatible ="ingenic,jz4725b-codec" , }, { } };MODULE_DEVICE_TABLE (of, jz4725b_codec_of_matches); -#endif static struct platform_driver jz4725b_codec_driver = { .probe = jz4725b_codec_probe, .driver = { .name ="jz4725b-codec" , - .of_match_table =of_match_ptr (jz4725b_codec_of_matches), + .of_match_table = jz4725b_codec_of_matches, }, };module_platform_driver (jz4725b_codec_driver);
sound/soc/codecs/jz4740.c +1 -3
@@ -344,19 +344,17 @@ static int jz4740_codec_probe(struct platform_device *pdev)return ret; } -#ifdef CONFIG_OF static const struct of_device_id jz4740_codec_of_matches[] = { { .compatible ="ingenic,jz4740-codec" , }, { } };MODULE_DEVICE_TABLE (of, jz4740_codec_of_matches); -#endif static struct platform_driver jz4740_codec_driver = { .probe = jz4740_codec_probe, .driver = { .name ="jz4740-codec" , - .of_match_table =of_match_ptr (jz4740_codec_of_matches), + .of_match_table = jz4740_codec_of_matches, }, };
sound/soc/codecs/jz4770.c +1 -1
@@ -937,7 +937,7 @@ static struct platform_driver jz4770_codec_driver = { .probe = jz4770_codec_probe, .driver = { .name = "jz4770-codec", - .of_match_table = of_match_ptr(jz4770_codec_of_matches), + .of_match_table = jz4770_codec_of_matches, }, };module_platform_driver (jz4770_codec_driver);
sound/soc/jz4740/Kconfig +1 -1
@@ -2,7 +2,7 @@ config SND_JZ4740_SOC_I2S tristate "SoC Audio (I2S protocol) for Ingenic JZ4740 SoC" depends on MIPS || COMPILE_TEST - depends on HAS_IOMEM + depends on OF && HAS_IOMEM select SND_SOC_GENERIC_DMAENGINE_PCM help Say Y if you want to use I2S protocol and I2S codec on Ingenic JZ4740
sound/soc/jz4740/jz4740-i2s.c +1 -3
@@ -504,7 +504,6 @@ static const struct snd_soc_component_driver jz4740_i2s_component = { .resume = jz4740_i2s_resume, }; -#ifdef CONFIG_OF static const struct of_device_id jz4740_of_matches[] = { { .compatible ="ingenic,jz4740-i2s" , .data = &jz4740_i2s_soc_info }, { .compatible ="ingenic,jz4760-i2s" , .data = &jz4760_i2s_soc_info },
@@ -513,7 +512,6 @@ static const struct of_device_id jz4740_of_matches[] = { {/* sentinel */ } };MODULE_DEVICE_TABLE (of, jz4740_of_matches); -#endif static int jz4740_i2s_dev_probe (struct platform_device *pdev) {
@@ -558,7 +556,7 @@ static struct platform_driver jz4740_i2s_driver = { .probe = jz4740_i2s_dev_probe, .driver = { .name = "jz4740-i2s", - .of_match_table = of_match_ptr(jz4740_of_matches) + .of_match_table = jz4740_of_matches, }, };
Signature · 1 line
2.26.2
Mark Brown
maintainerQuoted 5 lines · Paul Cercueil
All boards with Ingenic SoCs probe with devicetree already, we have no use for a non-devicetree path.
This solves some compilation warnings that were caused by unused variables in the case where
CONFIG_OFwas disabled.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: ingenic: Unconditionally depend on devicetree
commit: e6825bae26812e981c4d6f93214f0259ca9a4977
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark