Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks
From: Fabio Estevam
Date: Wed May 13 2020 - 12:05:56 EST
Hi Lubomir,
On Wed, May 13, 2020 at 12:08 PM Lubomir Rintel <lkundrak@xxxxx> wrote:
> /* Get Clocks: */
> - gpu->clk_reg = devm_clk_get(&pdev->dev, "reg");
> + gpu->clk_reg = devm_clk_get_optional(&pdev->dev, "reg");
> DBG("clk_reg: %p", gpu->clk_reg);
> if (IS_ERR(gpu->clk_reg))
> - gpu->clk_reg = NULL;
> + return err;
You should return PTR_ERR(gpu->clk_reg) instead.