Skip to content
Unverified Commit 04f8c76d authored by Rob Herring's avatar Rob Herring Committed by Mark Brown
Browse files

ASoC: rockchip: Fix unused rockchip_i2s_tdm_match warning for !CONFIG_OF



Commit 9958d859 ("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: 9958d859 ("ASoC: Use device_get_match_data()")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310121802.CDAGVdF2-lkp@intel.com/


Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231030142337.814907-2-robh@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fbb74e56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment