summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
d5 (patch) treee25b7133b1eb9de8523fbda5e0dc0f91422cf0dc /net/dsa/slave.c parent321fa4ffd94e333657e54037d2511c862ec92f6f (diff)
net: dsa: move netdevice notifier registration
Move the netdevice notifier block register code in slave.c and provide helpers for dsa.c to register and unregister it. At the same time, check for errors since (un)register_netdevice_notifier may fail. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c