Skip to content

Commit

Permalink
libnvdimm/of_pmem: Fix platform_no_drv_owner.cocci warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Dan Williams committed Mar 2, 2019
1 parent 5c9d62d commit 316720b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/nvdimm/of_pmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,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,
},
};
Expand Down

0 comments on commit 316720b

Please sign in to comment.