summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/imx-iim.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-21 01:57:42 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-08 13:54:17 +0100
commit17eb18d674d586e609a3e268975edd728d5c84a3 (patch)
treeb3e4c9a8924266288c4761cbca4519862689bc16 /drivers/nvmem/imx-iim.c
parentec3672b81fc8ff490e478bc5124f68c2be7174ee (diff)
downloadlinux-17eb18d674d586e609a3e268975edd728d5c84a3.tar.bz2
nvmem: set nvmem->owner to nvmem->dev->driver->owner if unset
All nvmem drivers are supposed to set the owner field of struct nvmem_config, but this matches nvmem->dev->driver->owner. As far as I see in drivers/nvmem/ directory, all the drivers are the case. So, make nvmem_register() set the nvmem's owner to the associated driver's owner unless nvmem_config sets otherwise. Remove .owner settings in the drivers that are now redundant. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/imx-iim.c')
-rw-r--r--drivers/nvmem/imx-iim.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvmem/imx-iim.c b/drivers/nvmem/imx-iim.c
index a5992602709a..52cfe91d9762 100644
--- a/drivers/nvmem/imx-iim.c
+++ b/drivers/nvmem/imx-iim.c
@@ -133,7 +133,6 @@ static int imx_iim_probe(struct platform_device *pdev)
cfg.read_only = true,
cfg.word_size = 1,
cfg.stride = 1,
- cfg.owner = THIS_MODULE,
cfg.reg_read = imx_iim_read,
cfg.dev = dev;
cfg.size = drvdata->nregs;