Re: [PATCH v2 01/10] iio: light: opt3001: move device registration to end of probe()

From: Andy Shevchenko

Date: Sun May 17 2026 - 02:03:12 EST


On Sat, May 16, 2026 at 06:57:33PM +0200, Joshua Crofts wrote:
> On Sat, 16 May 2026 at 13:56, Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> > On Tue, 12 May 2026 12:57:21 +0200
> > Joshua Crofts via B4 Relay <devnull+joshua.crofts1.gmail.com@xxxxxxxxxx> wrote:

...

> > return dev_err_probe(dev, ret, "failed to register IIO device\n");
> >
> > My eyes skipped right over that whilst reading :(
>
> Yes, I've read the report and it should definitely be fixed, however
> it is compilable
> on my machine - what an oddity!

The only possible explanation I see is that you have CONFIG_IIO=n, which makes
that no-op and compiler's code elimination makes it not even consider.

--
With Best Regards,
Andy Shevchenko