Skip to contentSkip to conversation

drivers: hwmon: fix platform_no_drv_owner.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Jan 10, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: hwmon: fix platform_no_drv_owner.cocci warnings

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 <[email protected]>

---

 aspeed-pwm-tacho.c |    1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/aspeed-pwm-tacho.c +0 -1
@@ -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,
 	},
 };

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html