summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>2017-05-12 13:59:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-15 12:59:10 +0300
commit578bdec44cc02a4d7bfd6390adee50036152e67c (patch)
tree28a49bebfe664252cd5889e81c4e79ec52b033c4 /include/linux/string.h
parentd54516086d95c8f2bd67716f54932e3fd3a904b8 (diff)
downloadlinux-578bdec44cc02a4d7bfd6390adee50036152e67c.tar.xz
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/string.h')
0 files changed, 0 insertions, 0 deletions