drm/bridge: ptn3460: Fix coccinelle warnings
authorkbuild test robot <fengguang.wu@intel.com>
Fri, 21 Aug 2015 11:05:39 +0000 (19:05 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 30 Oct 2015 17:40:36 +0000 (18:40 +0100)
The platform_no_drv_owner.cocci coccinelle script generates the
following warning:

drivers/gpu/drm/bridge/nxp-ptn3460.c:403:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically. Patch
generated by scripts/coccinelle/api/platform_no_drv_owner.cocci.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/bridge/nxp-ptn3460.c

index 1b1bf2384815be94ab3d8d5253d41b855bc3fb28..0ffa3a6a206a6110a427987cb332db14b7e3bd73 100644 (file)
@@ -400,7 +400,6 @@ static struct i2c_driver ptn3460_driver = {
        .remove         = ptn3460_remove,
        .driver         = {
                .name   = "nxp,ptn3460",
-               .owner  = THIS_MODULE,
                .of_match_table = ptn3460_match,
        },
 };