devlink: Change devlink_reload_supported() param type
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 7 Oct 2020 06:00:42 +0000 (09:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 19:06:52 +0000 (12:06 -0700)
commit69d56e0ea0ee9c61fa70c144449945ebaedb9dfa
tree480f150fc18d271327fcbacd8224b96d6def4c4f
parent846e463a70e910f2a831aea19f9a361422a2ff5b
devlink: Change devlink_reload_supported() param type

Change devlink_reload_supported() function to get devlink_ops pointer
param instead of devlink pointer param.
This change will be used in the next patch to check if devlink reload is
supported before devlink instance is allocated.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c