Commit 62456590 authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Mauro Carvalho Chehab

media: hi846: remove the of_match_ptr macro

Similar to other drivers, this should fix a Clang compilar warning when
building without CONFIG_OF in which case of_match_ptr() is NULL and
the const struct we would use otherwise is unused.
Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@puri.sm>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent e7cc3e09
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment