Commit 316720b9 authored by YueHaibing's avatar YueHaibing Committed by Dan Williams

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 5c9d62d0
...@@ -108,7 +108,6 @@ static struct platform_driver of_pmem_region_driver = { ...@@ -108,7 +108,6 @@ static struct platform_driver of_pmem_region_driver = {
.remove = of_pmem_region_remove, .remove = of_pmem_region_remove,
.driver = { .driver = {
.name = "of_pmem", .name = "of_pmem",
.owner = THIS_MODULE,
.of_match_table = of_pmem_region_match, .of_match_table = of_pmem_region_match,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment