diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-07-03 17:09:59 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-07-25 12:28:42 +0200 |
commit | f4b2ce40fd99ddb5c2ab9f1193454080f6714dfe (patch) | |
tree | 589690c6863f3a0a34c6a240627b4962dfd7467a /rust | |
parent | pinctrl: renesas: rzg2l: Handle non-unique subnode names (diff) | |
download | linux-f4b2ce40fd99ddb5c2ab9f1193454080f6714dfe.tar.xz linux-f4b2ce40fd99ddb5c2ab9f1193454080f6714dfe.zip |
pinctrl: renesas: rzv2m: Use devm_clk_get_enabled() helper
Simplify clock handling by using the devm_clk_get_enabled() helper,
instead of open-coding the same operations. Move the clock pointer from
the driver-private data to a local variable, as it is not needed outside
the .probe() callback.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/cca0b1795fd0335401bdf2be393ab84445e04095.1688396836.git.geert+renesas@glider.be
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions