Re: [PATCH 05/12] nvmem: set nvmem->owner to nvmem->dev->driver->owner if unset

From: Srinivas Kandagatla
Date: Fri Oct 20 2017 - 09:44:57 EST




On 20/10/17 14:38, Greg KH wrote:
On Mon, Oct 09, 2017 at 03:26:34PM +0200, srinivas.kandagatla@xxxxxxxxxx wrote:
From: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>

Patch does not apply :(

Hmm.. I did base it on char-misc last time when I sent it..

Will rebase it and resend it!

thanks,
srini