[PATCH v2] media: xilinx: vip: Make use of the devm_clk_get_enabled()

Mehdi Djait mehdi.djait at linux.intel.com
Wed Nov 18 03:32:24 PST 2026


Hi Michal,

On Wed, Nov 18, 2026 at 12:03:04PM +0100, Michal Simek wrote:
> There is missing return value check from clk_prepare_enable(). Fix it by
> using devm_clk_get_enabled() macro.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---

[..]

>  void xvip_cleanup_resources(struct xvip_device *xvip)
>  {
> -	clk_disable_unprepare(xvip->clk);

so the xvip_cleanup_resources() is empty after removing the
clk_disable_unprepare() call.

It is also called in xilinx-tpg.c and xilinx-vtc.c

>  }
>  EXPORT_SYMBOL_GPL(xvip_cleanup_resources);

--
Kind Regards
Mehdi Djait



More information about the linux-arm-kernel mailing list