Re: [PATCH 0/5] net: provide a devres variant of register_netdev()

2020-05-23 Thread Bartosz Golaszewski
sob., 23 maj 2020 o 00:36 David Miller napisaƂ(a): > > From: Bartosz Golaszewski > Date: Wed, 20 May 2020 13:44:10 +0200 > > > net: ethernet: mtk_eth_mac: use devm_register_netdev() > > This patch doesn't apply to net-next. > > Neither the source file

Re: [PATCH 0/5] net: provide a devres variant of register_netdev()

2020-05-22 Thread David Miller
From: Bartosz Golaszewski Date: Wed, 20 May 2020 13:44:10 +0200 > net: ethernet: mtk_eth_mac: use devm_register_netdev() This patch doesn't apply to net-next. Neither the source file drivers/net/ethernet/mediatek/mtk_eth_mac.c, nor the function mtk_mac_probe() even exist in the net-next GIT

[PATCH 0/5] net: provide a devres variant of register_netdev()

2020-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This series applies on top of my mtk-eth-mac series[1]. 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