diff options
author | Geert Uytterhoeven <[email protected]> | 2023-01-24 19:37:27 +0100 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-02-03 11:19:35 +0530 |
commit | 86a176840c627bd5b676b6dff9a0b98f3fe5fafc (patch) | |
tree | f51608b0795ba964c3ab6d27b0d3826a95fc8d92 /scripts | |
parent | a80becc56d274fc5d6226f74eaab1811c3984390 (diff) |
usb: host: ehci-exynos: Convert to devm_of_phy_optional_get()
Use the new devm_of_phy_optional_get() helper instead of open-coding the
same operation.
As devm_of_phy_optional_get() returns NULL if either the PHY cannot be
found, or if support for the PHY framework is not enabled, it is no
longer needed to check for -ENODEV or -ENOSYS.
This lets us drop several checks for IS_ERR(), as phy_power_{on,off}()
handle NULL parameters fine.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/a28baf4e07e464c43aff9e52263b5a902f5da9a0.1674584626.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions