net: devlink: use helpers to work with devlink->lock mutex
authorJiri Pirko <jiri@nvidia.com>
Tue, 12 Jul 2022 10:24:23 +0000 (12:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 12:49:44 +0000 (13:49 +0100)
commit7715023aa51f2a2d14d1ae785f2cb3cd72819d6f
tree205f85dc9487a9b36fd180f162e6d47118eab04f
parent1abfb265f0accc8635254cf1da03154ac7a5fb1b
net: devlink: use helpers to work with devlink->lock mutex

As far as the lock helpers exist as the drivers need to work with the
devlink->lock mutex, use the helpers internally in devlink.c in order to
be consistent.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c