]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: dwapb: Get clocks by means of resource managed interface
authorBaikal Electronics <support@baikalelectronics.ru>
Thu, 30 Jul 2020 15:28:06 +0000 (18:28 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Aug 2020 08:32:58 +0000 (10:32 +0200)
commit420561653fd8df8ef02ff10c8753d0f138ddf610
tree5b5547109adbce0a62f5f367b7f3c857212f6cd1
parent186e3b1ff3ee4b32504822236df282df9783e2b8
gpio: dwapb: Get clocks by means of resource managed interface

The kernel clock framework provides the resource managed version of
the clk_bulk_get() method. The only thing which needs to be also automated
is the clocks disable/unprepare procedure executed on the device removal.
It can be implemented by means of the custom action definition. After that
the clocks acquisition and release will be purely managed by the device
resources interface.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200730152808.2955-10-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c