diff mbox

Thermal-INT3406: Delete owner assignment

Message ID 43ac5f67-78cd-88a7-f421-830e48c63b52@users.sourceforge.net (mailing list archive)
State Accepted, archived
Delegated to: Zhang Rui
Headers show

Commit Message

SF Markus Elfring Aug. 15, 2016, 9:30 a.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 15 Aug 2016 11:22:40 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/thermal/int340x_thermal/int3406_thermal.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Zhang, Rui Aug. 19, 2016, 1:14 p.m. UTC | #1
On 一, 2016-08-15 at 11:30 +0200, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Mon, 15 Aug 2016 11:22:40 +0200
> 
> The field "owner" is set by core. Thus delete an extra
> initialisation.
> 
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>

Patch applied.

thanks,
rui
> ---
>  drivers/thermal/int340x_thermal/int3406_thermal.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/thermal/int340x_thermal/int3406_thermal.c
> b/drivers/thermal/int340x_thermal/int3406_thermal.c
> index a578cd2..1891f34 100644
> --- a/drivers/thermal/int340x_thermal/int3406_thermal.c
> +++ b/drivers/thermal/int340x_thermal/int3406_thermal.c
> @@ -225,7 +225,6 @@ static struct platform_driver
> int3406_thermal_driver = {
>  	.remove = int3406_thermal_remove,
>  	.driver = {
>  		   .name = "int3406 thermal",
> -		   .owner = THIS_MODULE,
>  		   .acpi_match_table = int3406_thermal_match,
>  		   },
>  };
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/thermal/int340x_thermal/int3406_thermal.c b/drivers/thermal/int340x_thermal/int3406_thermal.c
index a578cd2..1891f34 100644
--- a/drivers/thermal/int340x_thermal/int3406_thermal.c
+++ b/drivers/thermal/int340x_thermal/int3406_thermal.c
@@ -225,7 +225,6 @@  static struct platform_driver int3406_thermal_driver = {
 	.remove = int3406_thermal_remove,
 	.driver = {
 		   .name = "int3406 thermal",
-		   .owner = THIS_MODULE,
 		   .acpi_match_table = int3406_thermal_match,
 		   },
 };