[PATCH v2 0/5] tty/serial drivers use devm_clk_get_enabled() helpers

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

 



The devm_clk_get_enabled() helpers:
    - call devm_clk_get()
    - call clk_prepare_enable() and register what is needed in order to
     call clk_disable_unprepare() when needed, as a managed resource.

This simplifies the code and avoids calls to clk_disable_unprepare().

---
version 2 changes
1.8250_ingenic modification directly uses return data->line
2.8250_tegra Removes redundant label err_clkdisable
3.atmel_serial abandons the use of devm_clk_get_enabled interface for this file
4.mps2-uart abandons the use of devm_clk_get_enabled interface for run-time issues
5.st-asc abandons the use of devm_clk_get_enabled interface for this file
6.stm32-usart modifies the return method and removes unused labels

Lei Liu (5):
  tty: 8250_ingenic: Use devm_clk_get_enabled() helpers
  tty: 8250_tegra: Use devm_clk_get_enabled() helpers
  tty: 8250_uniphier: Use devm_clk_get_enabled() helpers
  tty: owl-uart: Use devm_clk_get_enabled() helpers
  tty: stm32-usart: Use devm_clk_get_enabled() helpers

 drivers/tty/serial/8250/8250_ingenic.c  | 27 +++-------------------
 drivers/tty/serial/8250/8250_tegra.c    | 12 ++--------
 drivers/tty/serial/8250/8250_uniphier.c |  8 +------
 drivers/tty/serial/owl-uart.c           | 10 +--------
 drivers/tty/serial/stm32-usart.c        | 30 ++++---------------------
 5 files changed, 11 insertions(+), 76 deletions(-)

-- 
2.34.1





[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux