]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: i2c: ov5645: Remove unneeded of_match_ptr macro
authorMoses Christopher Bollavarapu <mosescb.dev@gmail.com>
Fri, 29 Apr 2022 22:27:54 +0000 (00:27 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:35:34 +0000 (09:35 +0200)
of_match_ptr isn't required as CONFIG_OF is already a dependency in Kconfig

Signed-off-by: Moses Christopher Bollavarapu <mosescb.dev@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5645.c

index 5720e74e843b5ca328bf8a09357eeb07e09404ac..562c62f192c458e4faada80b2a2288473b80a670 100644 (file)
@@ -1283,7 +1283,7 @@ MODULE_DEVICE_TABLE(of, ov5645_of_match);
 
 static struct i2c_driver ov5645_i2c_driver = {
        .driver = {
-               .of_match_table = of_match_ptr(ov5645_of_match),
+               .of_match_table = ov5645_of_match,
                .name  = "ov5645",
        },
        .probe_new = ov5645_probe,