[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240820121651.29706-1-rongqianfeng@vivo.com>
Date: Tue, 20 Aug 2024 20:16:49 +0800
From: Rong Qianfeng <rongqianfeng@...o.com>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Shubhrajyoti Datta <shubhrajyoti.datta@....com>,
Srinivas Neeli <srinivas.neeli@....com>,
Michal Simek <michal.simek@....com>,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Cc: opensource.kernel@...o.com,
Rong Qianfeng <rongqianfeng@...o.com>
Subject: [PATCH v1 0/2] gpio: Simplify using devm_clk_get_enabled()
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
Powered by blists - more mailing lists