[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d2232172-f503-b7e4-a117-691ab2c480f4@linaro.org>
Date: Tue, 18 Feb 2020 12:24:26 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Bartosz Golaszewski <brgl@...ev.pl>,
Linus Walleij <linus.walleij@...aro.org>,
Khouloud Touil <ktouil@...libre.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bgolaszewski@...libre.com>
Subject: Re: [PATCH v2 5/7] nvmem: release the write-protect pin
On 18/02/2020 09:42, Bartosz Golaszewski wrote:
> @@ -428,6 +429,7 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config)
> device_del(&nvmem->dev);
> err_put_device:
> put_device(&nvmem->dev);
> + gpiod_put(nvmem->wp_gpio);
> err_ida_remove:
> ida_simple_remove(&nvmem_ida, nvmem->id);
> err_free_nvmem:
This is also redundant as explained in my previous comments about release()
--srini
> --
Powered by blists - more mailing lists