]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Change order of operations in removal path
authorIdo Schimmel <idosch@mellanox.com>
Mon, 28 Nov 2016 17:01:26 +0000 (18:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 01:48:51 +0000 (20:48 -0500)
commit12222d9c808f2c26afae2db8f5b94065396479dd
tree066ada2a1c4bbd39d15dff91215c65bee5b76f30
parent3df6d171cffbac3bfadd1329ed97b242751f9ce6
mlxsw: core: Change order of operations in removal path

We call bus->init() before allocating 'lag.mapping'. Change the order of
operations in removal path to reflect that.

This makes the error path of mlxsw_core_bus_device_register() symmetric
with mlxsw_core_bus_device_unregister().

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c