Re: [PATCH] gpio: Simplify using devm_clk_get_enabled()

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

 



On Tue, Aug 20, 2024 at 10:33 AM Rong Qianfeng <rongqianfeng@xxxxxxxx> wrote:
>
> 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.
>
> Signed-off-by: Rong Qianfeng <rongqianfeng@xxxxxxxx>
> ---
>  drivers/gpio/gpio-davinci.c  | 13 ++-----------
>  drivers/gpio/gpio-stp-xway.c | 10 ++--------
>  drivers/gpio/gpio-zynq.c     | 10 +---------
>  3 files changed, 5 insertions(+), 28 deletions(-)
>
> diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c

I already sent a patch like that for davinci, please drop that part.
Please split the other two into their separate per-driver patches.

Bart





[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