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


Groups > linux.kernel > #1377657 > unrolled thread

[PATCH] atmel-isc: fix platform_no_drv_owner.cocci warnings

Started byJulia Lawall <julia.lawall@lip6.fr>
First post2016-04-13 10:50 +0200
Last post2016-04-13 11:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] atmel-isc: fix platform_no_drv_owner.cocci warnings Julia Lawall <julia.lawall@lip6.fr> - 2016-04-13 10:50 +0200
    Re: [PATCH] atmel-isc: fix platform_no_drv_owner.cocci warnings "Wu, Songjun" <songjun.wu@atmel.com> - 2016-04-13 11:30 +0200

#1377657 — [PATCH] atmel-isc: fix platform_no_drv_owner.cocci warnings

FromJulia Lawall <julia.lawall@lip6.fr>
Date2016-04-13 10:50 +0200
Subject[PATCH] atmel-isc: fix platform_no_drv_owner.cocci warnings
Message-ID<rnoEO-6Uh-9@gated-at.bofh.it>
 Remove .owner field if calls are used which set it automatically

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

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

 atmel-isc.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -1524,7 +1524,6 @@ static struct platform_driver atmel_isc_
 	.remove	 = atmel_isc_remove,
 	.driver	 = {
 		.name   = ATMEL_ISC_NAME,
-		.owner  = THIS_MODULE,
 		.of_match_table = of_match_ptr(atmel_isc_of_match),
 	},
 };

[toc] | [next] | [standalone]


#1377683

From"Wu, Songjun" <songjun.wu@atmel.com>
Date2016-04-13 11:30 +0200
Message-ID<rnphv-7zX-13@gated-at.bofh.it>
In reply to#1377657
Accept.
Thank you for your comments.

On 4/13/2016 16:46, 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: Songjun Wu <songjun.wu@atmel.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>
>   atmel-isc.c |    1 -
>   1 file changed, 1 deletion(-)
>
> --- a/drivers/media/platform/atmel/atmel-isc.c
> +++ b/drivers/media/platform/atmel/atmel-isc.c
> @@ -1524,7 +1524,6 @@ static struct platform_driver atmel_isc_
>   	.remove	 = atmel_isc_remove,
>   	.driver	 = {
>   		.name   = ATMEL_ISC_NAME,
> -		.owner  = THIS_MODULE,
>   		.of_match_table = of_match_ptr(atmel_isc_of_match),
>   	},
>   };
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web