diff mbox

atmel-isc: fix platform_no_drv_owner.cocci warnings

Message ID alpine.DEB.2.10.1604131045400.2969@hadrien (mailing list archive)
State New, archived
Headers show

Commit Message

Julia Lawall April 13, 2016, 8:46 a.m. UTC
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(-)

Comments

Songjun Wu April 13, 2016, 9:24 a.m. UTC | #1
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),
>   	},
>   };
>
diff mbox

Patch

--- 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),
 	},
 };