diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-20 19:57:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-08 15:54:17 +0300 |
commit | 17eb18d674d586e609a3e268975edd728d5c84a3 (patch) | |
tree | b3e4c9a8924266288c4761cbca4519862689bc16 /drivers/nvmem/qfprom.c | |
parent | ec3672b81fc8ff490e478bc5124f68c2be7174ee (diff) | |
download | linux-17eb18d674d586e609a3e268975edd728d5c84a3.tar.xz |
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/qfprom.c')
-rw-r--r-- | drivers/nvmem/qfprom.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c index b96730e99580..cb3b48b47d64 100644 --- a/drivers/nvmem/qfprom.c +++ b/drivers/nvmem/qfprom.c @@ -56,7 +56,6 @@ static int qfprom_remove(struct platform_device *pdev) static struct nvmem_config econfig = { .name = "qfprom", - .owner = THIS_MODULE, .stride = 1, .word_size = 1, .reg_read = qfprom_reg_read, |