usb: host: xhci-plat: Improve clock handling in probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 21 Jan 2023 14:58:48 +0000 (14:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2023 14:48:16 +0000 (15:48 +0100)
commit8c6e8b09617915e8af3ab7dbfecd8f0a9c7cf94f
treebcd1b328da8759fe302c5323d6a115c383c97ac3
parent3827fa1ef38f52d9de7ec6e52b4f724dd7b60bb2
usb: host: xhci-plat: Improve clock handling in probe()

It is always better to acquire all the clock resources first and
then do the clock operations.

This patch acquires all the optional clocks first and then calls
corresponding prepare_enable().

There is no functional change.

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/20230121145853.4792-8-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c