Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510745

[PATCH] [media] media: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [PATCH] [media] media: fix platform_no_drv_owner.cocci warnings
Date 2016-10-28 00:40 +0200
Message-ID <sx1v4-7Xf-11@gated-at.bofh.it> (permalink)
References <sx1v4-7Xf-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 mtk_mdp_core.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c
+++ b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c
@@ -281,7 +281,6 @@ static struct platform_driver mtk_mdp_dr
 	.remove		= mtk_mdp_remove,
 	.driver = {
 		.name	= MTK_MDP_MODULE_NAME,
-		.owner	= THIS_MODULE,
 		.pm	= &mtk_mdp_pm_ops,
 		.of_match_table = mtk_mdp_of_ids,
 	}

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] [media] media: fix platform_no_drv_owner.cocci warnings kbuild test robot <fengguang.wu@intel.com> - 2016-10-28 00:40 +0200

csiph-web