From: Fengguang Wu Date: Fri, 8 Jul 2016 23:22:25 +0000 (-0300) Subject: [media] mtk-vcodec: fix platform_no_drv_owner.cocci warnings X-Git-Tag: v4.14-rc1~2828^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35697a0d99e142b795f34f183df859387068a72a;p=platform%2Fkernel%2Flinux-rpi.git [media] mtk-vcodec: fix platform_no_drv_owner.cocci warnings drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:433: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 Signed-off-by: Fengguang Wu Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c index 9c10cc2..60b0bde 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c @@ -430,7 +430,6 @@ static struct platform_driver mtk_vcodec_enc_driver = { .remove = mtk_vcodec_enc_remove, .driver = { .name = MTK_VCODEC_ENC_NAME, - .owner = THIS_MODULE, .of_match_table = mtk_vcodec_enc_match, }, };