Thread (14 messages) 14 messages, 6 authors, 2021-12-22

Re: [PATCH 3/3] serial: sh-sci: Use devm_clk_get_optional()

From: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date: 2021-12-16 15:23:08
Also in: linux-renesas-soc, linux-sh

On Thu, Dec 16, 2021 at 03:17:34PM +0100, Geert Uytterhoeven wrote:
The sh-sci driver supports up to four input clocks, of which only the
first one is mandatory.

Replace devm_clk_get() and custom error checking by
devm_clk_get_optional(), to simplify the code and to catch all real
errors.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Yeah, much better. Great cleanup!

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help