mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/2] gpio: Simplify using devm_clk_get_enabled()
@ 2024-08-20 12:16 Rong Qianfeng
  2024-08-20 12:16 ` [PATCH v1 1/2] gpio: stp-xway: " Rong Qianfeng
  2024-08-20 12:16 ` [PATCH v1 2/2] gpio: zynq: " Rong Qianfeng
  0 siblings, 2 replies; 7+ messages in thread
From: Rong Qianfeng @ 2024-08-20 12:16 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Shubhrajyoti Datta,
	Srinivas Neeli, Michal Simek, linux-gpio, linux-kernel,
	linux-arm-kernel
  Cc: opensource.kernel, Rong Qianfeng

devm_clk_get_enabled() will call devm_clk_get() + clk_prepare_enable()
and the clock will automatically be disabled, unprepared and freed when
the device is unbound from the bus. So simplify .probe() and .remove()
accordingly.

version 1 changes
The changes for davinci have been removed, as they have already been
sent by Bartosz.

Rong Qianfeng (2):
  gpio: stp-xway: Simplify using devm_clk_get_enabled()
  gpio: zynq: Simplify using devm_clk_get_enabled()

 drivers/gpio/gpio-stp-xway.c | 10 ++--------
 drivers/gpio/gpio-zynq.c     | 10 +---------
 2 files changed, 3 insertions(+), 17 deletions(-)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-02 11:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-20 12:16 [PATCH v1 0/2] gpio: Simplify using devm_clk_get_enabled() Rong Qianfeng
2024-08-20 12:16 ` [PATCH v1 1/2] gpio: stp-xway: " Rong Qianfeng
2024-09-02 10:31   ` Bartosz Golaszewski
2024-08-20 12:16 ` [PATCH v1 2/2] gpio: zynq: " Rong Qianfeng
2024-09-02 10:32   ` Bartosz Golaszewski
2024-09-02 10:58     ` Michal Simek
2024-09-02 11:59   ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®