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

media: rc: gpio-ir-recv: drop of_match_ptr for ID table

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here). This
also fixes !CONFIG_OF error:

drivers/media/rc/gpio-ir-recv.c:197:34: error: ‘gpio_ir_recv_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Sean Young <sean@mess.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mauro Carvalho Chehab
5372b23a 7bc1f3c8

+1 -1
+1 -1
drivers/media/rc/gpio-ir-recv.c
··· 205 205 .remove_new = gpio_ir_recv_remove, 206 206 .driver = { 207 207 .name = KBUILD_MODNAME, 208 - .of_match_table = of_match_ptr(gpio_ir_recv_of_match), 208 + .of_match_table = gpio_ir_recv_of_match, 209 209 #ifdef CONFIG_PM 210 210 .pm = &gpio_ir_recv_pm_ops, 211 211 #endif