diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-10-16 17:12:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 13:24:33 +0200 |
commit | 6158eaa7a717b469b1b0c0ae6d79910737686279 (patch) | |
tree | 4ad56805616e9dd62c3d179da25bda131b7483ed /net/netrom | |
parent | net: dsa: use port's cpu_dp when creating a slave (diff) | |
download | linux-6158eaa7a717b469b1b0c0ae6d79910737686279.tar.xz linux-6158eaa7a717b469b1b0c0ae6d79910737686279.zip |
net: dsa: add slave notify helper
Both DSA slave create and destroy functions call call_dsa_notifiers with
respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same
dsa_notifier_register_info structure.
Wrap this in a dsa_slave_notify helper so prevent cluttering these
functions.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions