Skip to content

Commit 0d4f74f

Browse files
arndbbroonie
authored andcommitted
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: 250304a ("ASoC: cs42l84: Add new codec driver") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d311968 commit 0d4f74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs42l84.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ MODULE_DEVICE_TABLE(i2c, cs42l84_id);
10961096
static struct i2c_driver cs42l84_i2c_driver = {
10971097
.driver = {
10981098
.name = "cs42l84",
1099-
.of_match_table = of_match_ptr(cs42l84_of_match),
1099+
.of_match_table = cs42l84_of_match,
11001100
},
11011101
.id_table = cs42l84_id,
11021102
.probe = cs42l84_i2c_probe,

0 commit comments

Comments
 (0)