]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Remove top_hierarchy arg to devlink_resource_register
authorDavid Ahern <dsahern@gmail.com>
Wed, 21 Mar 2018 02:31:14 +0000 (19:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:08:41 +0000 (13:08 -0400)
commit4c9928874891553981e067e4af4a5785fd0fbd0d
treec15227c333ad04300f6cb1727ad5b83cf98ebfcd
parent533c3f5818058a2d5d0c246cfc3e2a4c3dd58aaa
devlink: Remove top_hierarchy arg to devlink_resource_register

top_hierarchy arg can be determined by comparing parent_resource_id to
DEVLINK_RESOURCE_ID_PARENT_TOP so it does not need to be a separate
argument.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.c
include/net/devlink.h
net/core/devlink.c