[media] vcodec: mediatek: fix platform_no_drv_owner.cocci warnings
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 8 Mar 2017 20:57:12 +0000 (17:57 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:37:07 +0000 (11:37 -0300)
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1296: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: Rick Chang <rick.chang@mediatek.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c

index f9bd58ce7d32ba65f9e82b4077ef09cf283f49b7..68da53133d30f01b52263b0cec32767cdd64e809 100644 (file)
@@ -1294,7 +1294,6 @@ static struct platform_driver mtk_jpeg_driver = {
        .probe = mtk_jpeg_probe,
        .remove = mtk_jpeg_remove,
        .driver = {
-               .owner          = THIS_MODULE,
                .name           = MTK_JPEG_NAME,
                .of_match_table = mtk_jpeg_match,
                .pm             = &mtk_jpeg_pm_ops,