[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <406d627c-5eb3-b052-6d91-e37933584ed1@metafoo.de>
Date: Mon, 27 Dec 2021 13:19:25 +0100
From: Lars-Peter Clausen <lars@...afoo.de>
To: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
William Breathitt Gray <vilhelm.gray@...il.com>
Cc: kernel@...gutronix.de,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org,
Syed Nayyar Waris <syednwaris@...il.com>
Subject: Re: [PATCH v2 15/23] counter: 104-quad-8: Convert to new counter
registration
On 12/27/21 10:45 AM, Uwe Kleine-König wrote:
> [...]
>
> - return devm_counter_register(dev, &priv->counter);
> + err = devm_counter_add(dev, counter);
> + if (err < 0)
> + return dev_err_probe(dev, err, "Failed to add counter\n");
I wonder if we should put that dev_err_probe into the devm_counter_add
since every driver wants to have it anyway.
> +
> + return 0;
> }
>
> static struct isa_driver quad8_driver = {
Powered by blists - more mailing lists