diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-01-24 21:37:28 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-02-03 08:49:35 +0300 |
commit | 41a435e30eb007ca2c8f71db734af6ec3509af4d (patch) | |
tree | f84bbec957c1c4c898eb00cf43c616ac99cb079e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 86a176840c627bd5b676b6dff9a0b98f3fe5fafc (diff) | |
download | linux-41a435e30eb007ca2c8f71db734af6ec3509af4d.tar.xz |
usb: host: ohci-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 <geert+renesas@glider.be>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/3adc5dd1149a17ea7daf4463549feab886c6b145.1674584626.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions