From: YueHaibing Date: Tue, 26 Feb 2019 01:42:53 +0000 (+0000) Subject: libnvdimm/of_pmem: Fix platform_no_drv_owner.cocci warnings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=316720b9c2341307b9a17103cdafa1ca9b2fb872;p=linux.git 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 Signed-off-by: Dan Williams --- diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c index 0a701837dfc0b..11b9821eba859 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, }, };