i3c: master: cdns: Simplify handling clocks in probe()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 13 Jul 2025 15:24:12 +0000 (17:24 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 30 Jul 2025 23:24:25 +0000 (01:24 +0200)
commitda9b54708ddf0e76974365854cbec7fd9f1d4709
tree9c3e5c1578421593f82a898e7b35c337c8799523
parentba12d5f11d52510e804480c14da850f8c3561b69
i3c: master: cdns: Simplify handling clocks in probe()

The two clocks, driver is getting, are not being disabled/re-enabled
during runtime of the device.  Eliminate one variable in state struct,
all error paths and a lot of code from probe() and remove() by using
devm_clk_get_enabled().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250713152411.74917-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/i3c-master-cdns.c