Am 5. November 2021 09:22:50 MEZ schrieb Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>: >The compatible strings can also be used on ACPI so drop of_match_ptr() >macro. This also fixes a compiler warning when the driver is compiled >without OF support. > >Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> Signed-off-by: Martin Kepplinger <martink@xxxxxxxxx> but this is also part of https://lore.kernel.org/linux-media/20211019155509.1018130-1-martin.kepplinger@xxxxxxx/ just fyi >--- > drivers/media/i2c/hi846.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/media/i2c/hi846.c b/drivers/media/i2c/hi846.c >index 822ce3021fde..cf61c22f6125 100644 >--- a/drivers/media/i2c/hi846.c >+++ b/drivers/media/i2c/hi846.c >@@ -2176,7 +2176,7 @@ static struct i2c_driver hi846_i2c_driver = { > .driver = { > .name = "hi846", > .pm = &hi846_pm_ops, >- .of_match_table = of_match_ptr(hi846_of_match), >+ .of_match_table = hi846_of_match, > }, > .probe_new = hi846_probe, > .remove = hi846_remove,