Re: [PATCH v2 5/7] nvmem: release the write-protect pin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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


--



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux