Re: [PATCH] iio: light: fix platform_no_drv_owner.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/09/15 03:21, kbuild test robot wrote:
> drivers/iio/light/apds9960.c:1125: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: Matt Ranostay <mranostay@xxxxxxxxx>
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Applied to the togreg branch of iio.git.

Thanks,

Jonathan
> ---
> 
>  apds9960.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/iio/light/apds9960.c
> +++ b/drivers/iio/light/apds9960.c
> @@ -1122,7 +1122,6 @@ static struct i2c_driver apds9960_driver
>  	.driver = {
>  		.name	= APDS9960_DRV_NAME,
>  		.pm	= &apds9960_pm_ops,
> -		.owner = THIS_MODULE,
>  	},
>  	.probe		= apds9960_probe,
>  	.remove		= apds9960_remove,
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux