Skip to contentSkip to conversation

hwmon: fix platform_no_drv_owner.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Oct 7, 2016 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: fix platform_no_drv_owner.cocci warnings

No need to set .owner here. The core will do it.

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

---

tree: https://github.com/0day-ci/linux
Chris-Packham/hwmon-Add-tc654-driver/20161007-054116

head:   7b9f81e69fbc7077c55136daefe7546cf88925ae
commit: 7b9f81e69fbc7077c55136daefe7546cf88925ae [1/1] hwmon: Add tc654

driver

 tc654.c |    1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/tc654.c +0 -1
@@ -517,7 +517,6 @@ MODULE_DEVICE_TABLE(i2c, tc654_id);
 static struct i2c_driver tc654_driver = {
 	.driver = {
 		   .name = "tc654",
-		   .owner = THIS_MODULE,
 		   .of_match_table = of_match_ptr(tc654_dt_match),
 		   },
 	.probe = tc654_probe,