diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-05-09 16:45:44 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-05-10 11:24:20 -0700 |
commit | 3047211ca11bf77b3ecbce045c0aa544d934b945 (patch) | |
tree | 888e561ca41b04a4dcf1d78052928ec75067cbaf /drivers/net/dsa/dsa_loop.c | |
parent | 090e28b229af92dc5b40786ca673999d59e73056 (diff) |
net: dsa: loop: Add module soft dependency
There is a soft dependency against dsa_loop_bdinfo.ko which sets up the
MDIO device registration, since there are no symbols referenced by
dsa_loop.ko, there is no automatic loading of dsa_loop_bdinfo.ko which
is needed.
Fixes: 98cd1552ea27 ("net: dsa: Mock-up driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
-rw-r--r-- | drivers/net/dsa/dsa_loop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c index fdcb70b9f0e4..400207c5c7de 100644 --- a/drivers/net/dsa/dsa_loop.c +++ b/drivers/net/dsa/dsa_loop.c @@ -360,6 +360,7 @@ static void __exit dsa_loop_exit(void) } module_exit(dsa_loop_exit); +MODULE_SOFTDEP("pre: dsa_loop_bdinfo"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Florian Fainelli"); MODULE_DESCRIPTION("DSA loopback driver"); |