Skip to content
Commit 474a31e1 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by David S. Miller
Browse files

net: stmmac: fix notifier registration



We cannot register the same netdev notifier multiple times when probing
stmmac devices. Register the notifier only once in module init, and also
make debugfs creation/deletion safe against simultaneous notifier call.

Fixes: 481a7d15 ("stmmac: debugfs entry name is not be changed when udev rename device name.")
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c87a9d6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment