summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-26 02:42:53 +0100
committerDan Williams <dan.j.williams@intel.com>2019-03-02 09:05:35 +0100
commit316720b9c2341307b9a17103cdafa1ca9b2fb872 (patch)
tree36d408b8406c15bf243be2f41ece552c3f80a949 /drivers/nvdimm
parentacpi/nfit: Update NFIT flags error message (diff)
downloadlinux-316720b9c2341307b9a17103cdafa1ca9b2fb872.tar.xz
linux-316720b9c2341307b9a17103cdafa1ca9b2fb872.zip
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>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r--drivers/nvdimm/of_pmem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c
index 0a701837dfc0..11b9821eba85 100644
--- a/drivers/nvdimm/of_pmem.c
+++ b/drivers/nvdimm/of_pmem.c
@@ -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,
},
};