ASoC: cs42l84: remove incorrect of_match_ptr()

The use of of_match_ptr() is incorrect here and just causes
a warning:

sound/soc/codecs/cs42l84.c:1084:34: error: unused variable 'cs42l84_of_match' [-Werror,-Wunused-const-variable]

Fixes: 250304a0fb ("ASoC: cs42l84: Add new codec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20241029092404.3874040-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Arnd Bergmann 2024-10-29 09:23:55 +00:00 committed by Mark Brown
parent d311968890
commit 0d4f74febc
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1096,7 +1096,7 @@ MODULE_DEVICE_TABLE(i2c, cs42l84_id);
static struct i2c_driver cs42l84_i2c_driver = {
.driver = {
.name = "cs42l84",
.of_match_table = of_match_ptr(cs42l84_of_match),
.of_match_table = cs42l84_of_match,
},
.id_table = cs42l84_id,
.probe = cs42l84_i2c_probe,