]> git.baikalelectronics.ru Git - kernel.git/commit
net: devres: provide devm_register_netdev()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Sat, 23 May 2020 13:27:10 +0000 (15:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:56:17 +0000 (16:56 -0700)
commitd0b9605864ce665eab39f9fde3004c88e9b9e6f1
tree9398f206da34f779c6ccba968f81ab2553aaaf5a
parent995705efc7e3e3cbcf7ea755f6beea6bba60a709
net: devres: provide devm_register_netdev()

Provide devm_register_netdev() - a device resource managed variant
of register_netdev(). This new helper will only work for net_device
structs that are also already managed by devres.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/driver-api/driver-model/devres.rst
include/linux/netdevice.h
net/devres.c