[PATCH] drivers: hwmon: fix platform_no_drv_owner.cocci warnings

Julia Lawall julia.lawall at lip6.fr
Tue Jan 10 16:50:31 AEDT 2017


Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Jaghathiswari Rankappagounder Natarajan <jaghu at google.com>
Signed-off-by: Julia Lawall <julia.lawall at lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---

 aspeed-pwm-tacho.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/hwmon/aspeed-pwm-tacho.c
+++ b/drivers/hwmon/aspeed-pwm-tacho.c
@@ -872,7 +872,6 @@ static struct platform_driver aspeed_pwm
 	.probe		= aspeed_pwm_tacho_probe,
 	.driver		= {
 		.name	= "aspeed_pwm_tacho",
-		.owner	= THIS_MODULE,
 		.of_match_table = of_pwm_tacho_match_table,
 	},
 };


More information about the openbmc mailing list