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


Groups > linux.kernel > #1451315 > unrolled thread

[PATCH] fix platform_no_drv_owner.cocci warnings

Started byJulia Lawall <julia.lawall@lip6.fr>
First post2016-07-27 16:50 +0200
Last post2016-08-08 07:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] fix platform_no_drv_owner.cocci warnings Julia Lawall <julia.lawall@lip6.fr> - 2016-07-27 16:50 +0200
    Re: [PATCH] fix platform_no_drv_owner.cocci warnings Vinod Koul <vinod.koul@intel.com> - 2016-08-08 07:50 +0200

#1451315 — [PATCH] fix platform_no_drv_owner.cocci warnings

FromJulia Lawall <julia.lawall@lip6.fr>
Date2016-07-27 16:50 +0200
Subject[PATCH] fix platform_no_drv_owner.cocci warnings
Message-ID<rZyjM-F9-15@gated-at.bofh.it>
No need to set .owner here. The core will do it.

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

Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

--- a/drivers/dma/xilinx/xilinx_dpdma.c
+++ b/drivers/dma/xilinx/xilinx_dpdma.c
@@ -1944,7 +1944,6 @@ static struct platform_driver xilinx_dpd
 	.remove			= xilinx_dpdma_remove,
 	.driver			= {
 		.name		= "xilinx-dpdma",
-		.owner		= THIS_MODULE,
 		.of_match_table	= xilinx_dpdma_of_match,
 	},
 };

[toc] | [next] | [standalone]


#1457540

FromVinod Koul <vinod.koul@intel.com>
Date2016-08-08 07:50 +0200
Message-ID<s3LBM-5HW-13@gated-at.bofh.it>
In reply to#1451315
On Wed, Jul 27, 2016 at 04:41:16PM +0200, Julia Lawall wrote:
> No need to set .owner here. The core will do it.

And which tree was this generated against :-)

Upstream doesn't have  _dpdma.c

> 
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> 
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
> 
>  xilinx_dpdma.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/dma/xilinx/xilinx_dpdma.c
> +++ b/drivers/dma/xilinx/xilinx_dpdma.c
> @@ -1944,7 +1944,6 @@ static struct platform_driver xilinx_dpd
>  	.remove			= xilinx_dpdma_remove,
>  	.driver			= {
>  		.name		= "xilinx-dpdma",
> -		.owner		= THIS_MODULE,
>  		.of_match_table	= xilinx_dpdma_of_match,
>  	},
>  };

-- 
~Vinod

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web