[media] media: platform: fix platform_no_drv_owner.cocci warnings
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 30 Jan 2015 02:26:10 +0000 (23:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 15:35:49 +0000 (13:35 -0200)
drivers/media/platform/am437x/am437x-vpfe.c:2767:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

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

CC: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/am437x/am437x-vpfe.c

index 349bd060f5a4609fac2ac38a26f204048702c248..56a5cb0d215203f242b55e7609c4ddf6e7b4bc8f 100644 (file)
@@ -2763,7 +2763,6 @@ static struct platform_driver vpfe_driver = {
        .remove         = vpfe_remove,
        .driver = {
                .name   = VPFE_MODULE_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &vpfe_pm_ops,
                .of_match_table = of_match_ptr(vpfe_of_match),
        },