Re: [PATCH v6 5/8] iio: adc: at91_adc: use local struct device pointer in probe

From: Andy Shevchenko

Date: Fri Dec 04 2026 - 04:45:15 EST


On Fri, Dec 04, 2026 at 11:21:11AM +0200, Andy Shevchenko wrote:
> On Thu, Dec 03, 2026 at 07:30:09PM +0200, Abdelnasser Hussein wrote:

...

> > - dev_err(&pdev->dev, "Couldn't setup the triggers.\n");
> > + dev_err(dev, "Couldn't setup the triggers.\n");
>
> It should be dev_err_probe().

...

> > - dev_err(&pdev->dev, "Couldn't register the device.\n");
> > + dev_err(dev, "Couldn't register the device.\n");
>
> It should be dev_err_probe().
>
> > goto error_iio_device_register;
>
> And here is something fishy as we usually don't have goto:s in devm_*() enabled
> probe. But if the order is followed, then we are okay.

Okay, these are being addressed in the last patch of the series.

--
With Best Regards,
Andy Shevchenko