diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-28 15:26:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-29 20:36:25 -0500 |
commit | 67ea7ef19bddaf75c842f56181deba89e4ea62a2 (patch) | |
tree | 1103e64e767b8ef898a03b2f8ec56657e04b9f85 /include/linux | |
parent | 0075bd692dca037108fd8b5d90a68d34bad4c2f8 (diff) | |
download | linux-rt-67ea7ef19bddaf75c842f56181deba89e4ea62a2.tar.gz |
mlxsw: switchib: add MLXSW_PCI dependency
The newly added switchib driver fails to link if MLXSW_PCI=m:
drivers/net/ethernet/mellanox/mlxsw/mlxsw_switchib.o: In function^Cmlxsw_sib_module_exit':
switchib.c:(.exit.text+0x8): undefined reference to `mlxsw_pci_driver_unregister'
switchib.c:(.exit.text+0x10): undefined reference to `mlxsw_pci_driver_unregister'
drivers/net/ethernet/mellanox/mlxsw/mlxsw_switchib.o: In function `mlxsw_sib_module_init':
switchib.c:(.init.text+0x28): undefined reference to `mlxsw_pci_driver_register'
switchib.c:(.init.text+0x38): undefined reference to `mlxsw_pci_driver_register'
switchib.c:(.init.text+0x48): undefined reference to `mlxsw_pci_driver_unregister'
The other two such sub-drivers have a dependency, so add the same one
here. In theory we could allow this driver if MLXSW_PCI is disabled,
but it's probably not worth it.
Fixes: d1ba52638456 ("mlxsw: switchib: Introduce SwitchIB and SwitchIB silicon driver")
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions