Skip to content

Commit 04f8c76

Browse files
robherringbroonie
authored andcommitted
ASoC: rockchip: Fix unused rockchip_i2s_tdm_match warning for !CONFIG_OF
Commit 9958d85 ("ASoC: Use device_get_match_data()") dropped the unconditional use of rockchip_i2s_tdm_match resulting in this warning: sound/soc/rockchip/rockchip_i2s_tdm.c:1315:34: warning: 'rockchip_i2s_tdm_match' defined but not used [-Wunused-const-variable=] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver. Fixes: 9958d85 ("ASoC: Use device_get_match_data()") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202310121802.CDAGVdF2-lkp@intel.com/ Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231030142337.814907-2-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fbb74e5 commit 04f8c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/rockchip/rockchip_i2s_tdm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ static struct platform_driver rockchip_i2s_tdm_driver = {
17571757
.remove_new = rockchip_i2s_tdm_remove,
17581758
.driver = {
17591759
.name = DRV_NAME,
1760-
.of_match_table = of_match_ptr(rockchip_i2s_tdm_match),
1760+
.of_match_table = rockchip_i2s_tdm_match,
17611761
.pm = &rockchip_i2s_tdm_pm_ops,
17621762
},
17631763
};

0 commit comments

Comments
 (0)