summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>2017-05-12 12:59:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-15 11:59:10 +0200
commit578bdec44cc02a4d7bfd6390adee50036152e67c (patch)
tree28a49bebfe664252cd5889e81c4e79ec52b033c4 /include/linux
parentd54516086d95c8f2bd67716f54932e3fd3a904b8 (diff)
downloadcachepc-linux-578bdec44cc02a4d7bfd6390adee50036152e67c.tar.gz
cachepc-linux-578bdec44cc02a4d7bfd6390adee50036152e67c.zip
staging: most: allocate private net_dev_context with the alloc_netdev
This moves the allocation of the net_dev to the aim_probe_channel() and uses the parameter sizeof_priv of the function alloc_netdev to reserve the space for the struct net_dev_context. As a side effect, the nd->dev always points to the existing net_dev. Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions