[PATCH v2 3/7] hwrng: exynos: Use devm_clk_get_enabled() to get the clock

Anand Moon linux.amoon at gmail.com
Thu Jun 20 02:27:03 PDT 2024


Hi Sam,

On Wed, 19 Jun 2024 at 02:15, Sam Protsenko <semen.protsenko at linaro.org> wrote:
>
> Use devm_clk_get_enabled() helper instead of calling devm_clk_get() and
> then clk_prepare_enable(). It simplifies the error handling and makes
> the code more compact. Also use dev_err_probe() to handle possible
> -EPROBE_DEFER errors if the clock is not available yet.
>
> Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
> ---
> Changes in v2:
>   - No changes (it's a new patch added in v2)
>

Reviewed-by: Anand Moon <linux.amoon at gmail.com>

Thanks

-Anand



More information about the linux-arm-kernel mailing list