Skip to content

Commit 316720b

Browse files
YueHaibingdjbw
authored andcommitted
libnvdimm/of_pmem: 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 Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 5c9d62d commit 316720b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/nvdimm/of_pmem.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ static struct platform_driver of_pmem_region_driver = {
108108
.remove = of_pmem_region_remove,
109109
.driver = {
110110
.name = "of_pmem",
111-
.owner = THIS_MODULE,
112111
.of_match_table = of_pmem_region_match,
113112
},
114113
};

0 commit comments

Comments
 (0)