Re: [PATCH -next] iio: frequency: adf4350: disable reg and clk on error in adf4350_probe()

From: Linus Walleij
Date: Fri Jun 04 2021 - 03:57:32 EST


On Tue, Jun 1, 2021 at 4:21 PM Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote:

> Disable reg and clk when devm_gpiod_get_optional() fails in adf4350_probe().
>
> Fixes:4a89d2f47ccd ("iio: adf4350: Convert to use GPIO descriptor")
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij