Re: [PATCH 08/14] nvmem: remove duplicated reference counting

From: Greg KH

Date: Fri Jul 31 2026 - 05:10:03 EST


On Wed, Jul 29, 2026 at 10:46:41AM +0100, srini@xxxxxxxxxx wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
>
> Commit c1de7f43bd84 ("nvmem: use kref") introduced reference counting
> with kref to an already reference counted nvmem_device structure. We
> only need one refcount so use the one provded by device's kobject and
> drop the kref field from struct nvmem_device.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> Tested-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>
> Signed-off-by: Srinivas Kandagatla <srini@xxxxxxxxxx>
> ---
> drivers/nvmem/core.c | 80 +++++++++++++++++----------------------
> drivers/nvmem/internals.h | 1 -
> 2 files changed, 34 insertions(+), 47 deletions(-)

This, and patch 9/14, did not apply against my tree. Can you rebase and
resend just those two?

thanks,

greg k-h