lkml.org 
[lkml]   [2020]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 0/5] net: provide a devres variant of register_netdev()
From
From: Bartosz Golaszewski <brgl@bgdev.pl>
Date: Sat, 23 May 2020 15:27:06 +0200

> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> Using devres helpers allows to shrink the probing code, avoid memory leaks in
> error paths make sure the order in which resources are freed is the exact
> opposite of their allocation. This series proposes to add a devres variant
> of register_netdev() that will only work with net_device structures whose
> memory is also managed.
>
> First we add the missing documentation entry for the only other networking
> devres helper: devm_alloc_etherdev().
>
> Next we move devm_alloc_etherdev() into a separate source file.
>
> We then use a proxy structure in devm_alloc_etherdev() to improve readability.
>
> Last: we implement devm_register_netdev() and use it in mtk-eth-mac driver.
>
> v1 -> v2:
> - rebase on top of net-next after driver rename, no functional changes

Series applied, thank you.

\
 
 \ /
  Last update: 2020-05-24 01:57    [W:0.047 / U:6.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site