counter: rz-mtu3-cnt: Reorder locking sequence for consistency
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 25 Jul 2023 15:46:11 +0000 (16:46 +0100)
committerWilliam Breathitt Gray <william.gray@linaro.org>
Wed, 16 Aug 2023 13:41:29 +0000 (09:41 -0400)
commit39266b642ccdc154b48eae11263920956fa0e89e
tree76ab172266bf558ce3c707f9a0581b9f28acf743
parent3a91388002afb03521b03c0cc1b7f371e3b1151a
counter: rz-mtu3-cnt: Reorder locking sequence for consistency

All functions except rz_mtu3_count_enable_write(), call
pm_runtime_{get,put} inside the lock. For consistency do the same here.

Reported-by: Pavel Machek <pavel@denx.de>
Closes: https://lore.kernel.org/r/ZH8Fmom8vZ4DwxqA@duo.ucw.cz
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230725154611.227556-1-biju.das.jz@bp.renesas.com/
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
drivers/counter/rz-mtu3-cnt.c