mlxsw: spectrum: Fix error path in mlxsw_sp_module_init
authorJiri Pirko <jiri@mellanox.com>
Thu, 1 Sep 2016 08:37:42 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
commitde7d62952b01755f9885bbe945b141d9d4338e55
treef312676e8324967814012f0abf2edd7825cad4fc
parent7146da31817aa21b19d7a01e95b94686c3f4bd97
mlxsw: spectrum: Fix error path in mlxsw_sp_module_init

Add forgotten notifier unregister.

Fixes: 99724c18fc66 ("mlxsw: spectrum: Introduce support for router interfaces")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c