aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/jz4725b.c
diff options
context:
space:
mode:
authorGravatar Paul Cercueil <paul@crapouillou.net> 2020-05-23 14:54:55 +0200
committerGravatar Mark Brown <broonie@kernel.org> 2020-05-28 13:20:17 +0100
commite6825bae26812e981c4d6f93214f0259ca9a4977 (patch)
tree3341c1c68029054aee3c6934c0720f05691382ff /sound/soc/codecs/jz4725b.c
parentMerge series "ASoC: SOF: finalize Baytrail/CherryTrail support" from Pierre-L... (diff)
downloadlinux-e6825bae26812e981c4d6f93214f0259ca9a4977.tar.gz
linux-e6825bae26812e981c4d6f93214f0259ca9a4977.tar.bz2
linux-e6825bae26812e981c4d6f93214f0259ca9a4977.zip
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. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20200523125455.12392-1-paul@crapouillou.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/jz4725b.c')
-rw-r--r--sound/soc/codecs/jz4725b.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/jz4725b.c b/sound/soc/codecs/jz4725b.c
index 2567a5d15b55..e49374c72e70 100644
--- a/sound/soc/codecs/jz4725b.c
+++ b/sound/soc/codecs/jz4725b.c
@@ -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);