OSDN Git Service

mlxsw: spectrum: Fix error path in mlxsw_sp_module_init()
authorJiri Pirko <jiri@mellanox.com>
Wed, 31 Jul 2019 06:33:14 +0000 (09:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 15:22:12 +0000 (08:22 -0700)
commit28fe79000e9b0a6f99959869947f1ca305f14599
tree6c77183dbd5e0e1d1f52fcca1832b40358ca1304
parentabb48f801396ba312e95f3c11072425221ce7401
mlxsw: spectrum: Fix error path in mlxsw_sp_module_init()

In case of sp2 pci driver registration fail, fix the error path to
start with sp1 pci driver unregister.

Fixes: c3ab435466d5 ("mlxsw: spectrum: Extend to support Spectrum-2 ASIC")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c