Skip to content

Commit ae11c0e

Browse files
krzkmchehab
authored andcommitted
media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table
The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/media/dvb-frontends/mn88443x.c:782:34: error: ‘mn88443x_of_match’ defined but not used [-Werror=unused-const-variable=] Link: https://lore.kernel.org/linux-media/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 517a281 commit ae11c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/dvb-frontends/mn88443x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ MODULE_DEVICE_TABLE(i2c, mn88443x_i2c_id);
798798
static struct i2c_driver mn88443x_driver = {
799799
.driver = {
800800
.name = "mn88443x",
801-
.of_match_table = of_match_ptr(mn88443x_of_match),
801+
.of_match_table = mn88443x_of_match,
802802
},
803803
.probe_new = mn88443x_probe,
804804
.remove = mn88443x_remove,

0 commit comments

Comments
 (0)