i2c: lpc2k: Add check for clk_enable()
authorChenyuan Yang <chenyuan0y@gmail.com>
Sat, 12 Apr 2025 19:37:13 +0000 (14:37 -0500)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:54 +0000 (22:23 +0200)
commitb7a886e7e9e814e9fb30ec85935c098bf7f3d78d
treea87cec8844604fca583f2b2dddb42ee065f99097
parent5a1934f1c23feb525facdfa643600124a611c974
i2c: lpc2k: Add check for clk_enable()

Add check for the return value of clk_enable() to catch
the potential error.

This is similar to the commit 8332e6670997
("spi: zynq-qspi: Add check for clk_enable()").

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://lore.kernel.org/r/20250412193713.105838-1-chenyuan0y@gmail.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-lpc2k.c