Re: [PATCH 6/7] usb: host: ehci-exynos: Convert to devm_of_phy_optional_get()

Greg Kroah-Hartman
2023-01-19T12:17:31Z

On Wed, Jan 18, 2023 at 11:15:19AM +0100, Geert Uytterhoeven wrote:
> Use the new devm_of_phy_optional_get() helper instead of open-coding the
> same operation.
>
> This lets us drop several checks for IS_ERR(), as phy_power_{on,off}()
> handle NULL parameters fine.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> drivers/usb/host/ehci-exynos.c | 24 +++++++-----------------
> 1 file changed, 7 insertions(+), 17 deletions(-)
>

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>