Skip to contentSkip to conversation

acpi/nfit, device-dax: Fix platform_no_drv_owner.cocci warnings

PATCH New YueHaibing 1 participant 1 message Feb 26, 2019

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 acpi/nfit, device-dax: 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

---
 drivers/nvdimm/of_pmem.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvdimm/of_pmem.c +0 -1
index ecaaa27438e2..a0c8dcfa0bf9 100644
@@ -109,7 +109,6 @@ static struct platform_driver of_pmem_region_driver = {
 	.remove = of_pmem_region_remove,
 	.driver = {
 		.name = "of_pmem",
-		.owner = THIS_MODULE,
 		.of_match_table = of_pmem_region_match,
 	},
 };

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm