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)
commit145307460ba9c11489807de7acd3f4c7395f60b7
treec15227c333ad04300f6cb1727ad5b83cf98ebfcd
parent8ae797aaa845317bddfbf14f4b37514b017045a6
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