[-next] thermal: Fix platform_no_drv_owner.cocci warnings
diff mbox series

Message ID 20190601032338.47195-1-yuehaibing@huawei.com
State Not Applicable
Delegated to: Zhang Rui
Headers show
Series
  • [-next] thermal: Fix platform_no_drv_owner.cocci warnings
Related show

Commit Message

YueHaibing June 1, 2019, 3:23 a.m. UTC
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/thermal/thermal_mmio.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Shenhar, Talel June 3, 2019, 9:27 a.m. UTC | #1
Thanks. This issue was already fixed by previous patch.

On 6/1/2019 6:23 AM, YueHaibing wrote:
> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>   drivers/thermal/thermal_mmio.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c
> index de3cceea23bc..1dce9f00d45c 100644
> --- a/drivers/thermal/thermal_mmio.c
> +++ b/drivers/thermal/thermal_mmio.c
> @@ -117,7 +117,6 @@ static struct platform_driver thermal_mmio_driver = {
>   	.probe = thermal_mmio_probe,
>   	.driver = {
>   		.name = "thermal-mmio",
> -		.owner = THIS_MODULE,
>   		.of_match_table = of_match_ptr(thermal_mmio_id_table),
>   	},
>   };
>
>
>
>
>

Patch
diff mbox series

diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c
index de3cceea23bc..1dce9f00d45c 100644
--- a/drivers/thermal/thermal_mmio.c
+++ b/drivers/thermal/thermal_mmio.c
@@ -117,7 +117,6 @@  static struct platform_driver thermal_mmio_driver = {
 	.probe = thermal_mmio_probe,
 	.driver = {
 		.name = "thermal-mmio",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(thermal_mmio_id_table),
 	},
 };