VPU: mediatek: fix platform_no_drv_owner.cocci warnings
diff mbox

Message ID alpine.DEB.2.10.1604221506070.2872@hadrien
State New
Headers show

Commit Message

Julia Lawall April 22, 2016, 1:08 p.m. UTC
Remove .owner field if calls are used which set it automatically

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

CC: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

base:   git://linuxtv.org/media_tree.git master

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

Comments

Andrew-CT Chen April 25, 2016, 12:42 p.m. UTC | #1
On Fri, 2016-04-22 at 15:08 +0200, Julia Lawall wrote:
> Remove .owner field if calls are used which set it automatically
> 
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> 
> CC: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---

Acked-by: Andrew-CT Chen <andrew-ct.chen@mediatek.com>

> 
> base:   git://linuxtv.org/media_tree.git master
> 
>  mtk_vpu.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/media/platform/mtk-vpu/mtk_vpu.c
> +++ b/drivers/media/platform/mtk-vpu/mtk_vpu.c
> @@ -939,7 +939,6 @@ static struct platform_driver mtk_vpu_dr
>  	.remove	= mtk_vpu_remove,
>  	.driver	= {
>  		.name	= "mtk_vpu",
> -		.owner	= THIS_MODULE,
>  		.of_match_table = mtk_vpu_match,
>  	},
>  };

Patch
diff mbox

--- a/drivers/media/platform/mtk-vpu/mtk_vpu.c
+++ b/drivers/media/platform/mtk-vpu/mtk_vpu.c
@@ -939,7 +939,6 @@  static struct platform_driver mtk_vpu_dr
 	.remove	= mtk_vpu_remove,
 	.driver	= {
 		.name	= "mtk_vpu",
-		.owner	= THIS_MODULE,
 		.of_match_table = mtk_vpu_match,
 	},
 };