]> Git Repo - linux.git/commitdiff
media: hi846: remove the of_match_ptr macro
authorMartin Kepplinger <[email protected]>
Tue, 19 Oct 2021 15:55:09 +0000 (16:55 +0100)
committerMauro Carvalho Chehab <[email protected]>
Fri, 19 Nov 2021 05:56:07 +0000 (05:56 +0000)
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: Martin Kepplinger <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/i2c/hi846.c

index 614d5593290361a883c9b13be80a507b020c2247..48909faeced4663cd169276abd33eb5df1ac88cd 100644 (file)
@@ -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,
This page took 0.147177 seconds and 4 git commands to generate.