Skip to content

Commit a12a383

Browse files
krzkbroonie
authored andcommitted
ASoC: lochnagar: Fix unused lochnagar_of_match warning
lochnagar_of_match is used unconditionally, so COMPILE_TEST builds without OF warn: sound/soc/codecs/lochnagar-sc.c:247:34: error: ‘lochnagar_of_match’ defined but not used [-Werror=unused-const-variable=] Reported-by: kernel test robot <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ff5870a commit a12a383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/lochnagar-sc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(of, lochnagar_of_match);
253253
static struct platform_driver lochnagar_sc_codec_driver = {
254254
.driver = {
255255
.name = "lochnagar-soundcard",
256-
.of_match_table = of_match_ptr(lochnagar_of_match),
256+
.of_match_table = lochnagar_of_match,
257257
},
258258

259259
.probe = lochnagar_sc_probe,

0 commit comments

Comments
 (0)