net: stmmac: dwmac-qcom-ethqos: shrink clock code with devres
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 19 Jun 2023 09:23:49 +0000 (11:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jun 2023 03:44:37 +0000 (20:44 -0700)
commit9fc68f23a6d3729ccbeb6ca7da6de0bc399f9ddb
tree3636af3ce21d288cc6f69a996b8c9efbe02840ad
parentf61d2d5cf142436cd1a02ddc78425e91116b8b0d
net: stmmac: dwmac-qcom-ethqos: shrink clock code with devres

We can use a devm action to completely drop the remove callback and use
stmmac_pltfr_remove() directly for remove. We can also drop one of the
goto labels.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c