media: ov13858: Remove owner assignment from i2c_driver
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 24 Mar 2018 14:01:34 +0000 (10:01 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 18:33:48 +0000 (14:33 -0400)
Structure i2c_driver does not need to set the owner field, as this will
be populated by the driver core.

Generated by scripts/coccinelle/api/platform_no_drv_owner.cocci.

Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov13858.c

index 3dbcae257164b7d241f9bb74a691fe563eac3e95..a66f6201f53c71e73306ff3d1942d47ba08d6fef 100644 (file)
@@ -1796,7 +1796,6 @@ MODULE_DEVICE_TABLE(acpi, ov13858_acpi_ids);
 static struct i2c_driver ov13858_i2c_driver = {
        .driver = {
                .name = "ov13858",
-               .owner = THIS_MODULE,
                .pm = &ov13858_pm_ops,
                .acpi_match_table = ACPI_PTR(ov13858_acpi_ids),
        },