lkml.org 
[lkml]   [2021]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 15/23] counter: 104-quad-8: Convert to new counter registration
From
Date
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 = {


\
 
 \ /
  Last update: 2021-12-27 13:20    [W:0.484 / U:1.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site