All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal: no need to set .owner when using module_platform_driver
@ 2019-10-26  1:04 Tian Tao
  2019-10-27  7:33 ` Shenhar, Talel
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2019-10-26  1:04 UTC (permalink / raw)
  To: talel, rui.zhang, edubezval, daniel.lezcano, amit.kucheria, linux-pm
  Cc: linuxarm

the module_platform_driver will call platform_driver_register.
and It will set the .owner to THIS_MODULE

Signed-off-by: Tian Tao <tiantao6@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 40524fa..d0bdf1e 100644
--- a/drivers/thermal/thermal_mmio.c
+++ b/drivers/thermal/thermal_mmio.c
@@ -110,7 +110,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),
 	},
 };
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] thermal: no need to set .owner when using module_platform_driver
  2019-10-26  1:04 [PATCH] thermal: no need to set .owner when using module_platform_driver Tian Tao
@ 2019-10-27  7:33 ` Shenhar, Talel
  0 siblings, 0 replies; 2+ messages in thread
From: Shenhar, Talel @ 2019-10-27  7:33 UTC (permalink / raw)
  To: Tian Tao, rui.zhang, edubezval, daniel.lezcano, amit.kucheria, linux-pm
  Cc: linuxarm, Krupnik, Ronen


On 10/26/2019 4:04 AM, Tian Tao wrote:
> the module_platform_driver will call platform_driver_register.
> and It will set the .owner to THIS_MODULE
>
> Signed-off-by: Tian Tao <tiantao6@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 40524fa..d0bdf1e 100644
> --- a/drivers/thermal/thermal_mmio.c
> +++ b/drivers/thermal/thermal_mmio.c
> @@ -110,7 +110,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),
>   	},
>   };
Acked-by: Talel Shenhar <talel@amazon.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-27  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-26  1:04 [PATCH] thermal: no need to set .owner when using module_platform_driver Tian Tao
2019-10-27  7:33 ` Shenhar, Talel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.