]> git.baikalelectronics.ru Git - kernel.git/commit
net: add devm version of alloc_etherdev_mqs function
authorRafał Miłecki <rafal@milecki.pl>
Sat, 28 Jan 2017 14:15:42 +0000 (15:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 00:24:12 +0000 (19:24 -0500)
commite6288bb35701609915e3eae2ef56c0fcb6eb85dd
tree20e4ab47bba12adbd70701e9d002ccb2599dae64
parent5d203a6ffcd6b88826a16fabc9a6c755a81be078
net: add devm version of alloc_etherdev_mqs function

This patch adds devm_alloc_etherdev_mqs function and devm_alloc_etherdev
macro. These can be used for simpler netdev allocation without having to
care about calling free_netdev.

Thanks to this change drivers, their error paths and removal paths may
get simpler by a bit.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h
net/ethernet/eth.c