]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memory: ti-aemif: use devm_clk_get_enabled() and shrink the code
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 9 Aug 2024 14:15:55 +0000 (16:15 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 12 Aug 2024 10:32:10 +0000 (12:32 +0200)
commitf6ae541cc3355fe872d4c942dc47d67877951d17
tree54b966265e703976a46da699f8bb813feaca72fd
parent8c38617722bdf57a90e6c77ed9ee5ebb60958d2a
memory: ti-aemif: use devm_clk_get_enabled() and shrink the code

Remove several lines of code and a jump label by using the managed
variant of clk_get() that also prepares and enables the clock (and
disables and unprepares it on driver detach).

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20240809-ti-aemif-v1-2-27b1e5001390@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/ti-aemif.c