[PATCH 6/7] usb: host: ehci-exynos: Convert to devm_of_phy_optional_get()
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Thu Jan 19 04:17:16 PST 2023
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 at glider.be>
> ---
> drivers/usb/host/ehci-exynos.c | 24 +++++++-----------------
> 1 file changed, 7 insertions(+), 17 deletions(-)
>
Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the linux-phy
mailing list