Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: fix platform_no_drv_owner.cocci warnings

drivers/media/platform/mtk-mdp/mtk_mdp_core.c:284: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: Minghsiu Tsai <minghsiu.tsai@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>

authored by

Fengguang Wu and committed by
Mauro Carvalho Chehab
f76fb34a 55d80506

-1
-1
drivers/media/platform/mtk-mdp/mtk_mdp_core.c
··· 282 282 .remove = mtk_mdp_remove, 283 283 .driver = { 284 284 .name = MTK_MDP_MODULE_NAME, 285 - .owner = THIS_MODULE, 286 285 .pm = &mtk_mdp_pm_ops, 287 286 .of_match_table = mtk_mdp_of_ids, 288 287 }