Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20230312131318.351173-28-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mauro Carvalho Chehab
ae11c0ef 517a2813

+1 -1
+1 -1
drivers/media/dvb-frontends/mn88443x.c
··· 798 798 static struct i2c_driver mn88443x_driver = { 799 799 .driver = { 800 800 .name = "mn88443x", 801 - .of_match_table = of_match_ptr(mn88443x_of_match), 801 + .of_match_table = mn88443x_of_match, 802 802 }, 803 803 .probe_new = mn88443x_probe, 804 804 .remove = mn88443x_remove,