Re: [PATCH v2 07/16] nvmem: change the signature of nvmem_unregister()

From: Srinivas Kandagatla
Date: Mon Sep 10 2018 - 03:33:32 EST




On 07/09/18 11:07, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

This function can no longer fail and there are no more users that check
it return value. Change it to return void.

This should be either part of Kref patch or it should state that refcount handling is impoved in Kref patch so there is no need of returning error code from unregister.


Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
---
drivers/nvmem/core.c | 8 ++------
include/linux/nvmem-provider.h | 9 +++------
2 files changed, 5 insertions(+), 12 deletions(-)