[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b2abb2bb-d972-4ac9-9237-26f44c597170@oracle.com>
Date: Sun, 1 Feb 2026 00:58:34 +0530
From: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
To: David Lechner <dlechner@...libre.com>,
Jonathan Cameron
<jic23@...nel.org>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>,
Andrew Ijano <andrew.ijano@...il.com>,
"open list:IIO SUBSYSTEM AND DRIVERS" <linux-iio@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Cc: kernel-janitors@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...el.com>
Subject: Re: [PATCH next 2/4] iio: sca3000: switch IRQ handling to devm
helpers
Hi David,
On 01/02/26 00:51, David Lechner wrote:
> On 1/30/26 3:43 PM, Harshit Mogalapalli wrote:
>> Convert the threaded IRQ registration to devm_request_threaded_irq() so
>> that the probe and remove paths can drop manual freeing of irqs.
>>
>> No functionality change.
>>
>
>
> ...
>
>> @@ -1484,23 +1483,17 @@ static int sca3000_probe(struct spi_device *spi)
>> }
>> ret = sca3000_clean_setup(st);
>> if (ret)
>> - goto error_free_irq;
>> + return ret;
>>
>> ret = sca3000_print_rev(indio_dev);
>> if (ret)
>> - goto error_free_irq;
>> + return ret;
>>
>> ret = iio_device_register(indio_dev);
>> if (ret)
>> - goto error_free_irq;
>> + return ret;
>>
>> return 0;
> This can `return iio_device_register();` directly now.
Thanks for the review and comments! I agree, it could have been simplified.
I am working on a v2 now. Will address it, in v2 basically the
iio_device_register() --> devm_iio_device_register() conversion is done
in last patch so we don't have this problem, so it kind of gets
auto-resolved in v2.
Thanks,
Harshit
Powered by blists - more mailing lists