diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-01-24 21:37:23 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-02-03 08:22:49 +0300 |
commit | a6ebcae7de16f3af3c328e8fba7c77aac8a910e9 (patch) | |
tree | 25e3323424185ffbdd6c92db5e18866bcf41625a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d02aa181ee595c81738b6bd7ebad6025fbee035a (diff) | |
download | linux-a6ebcae7de16f3af3c328e8fba7c77aac8a910e9.tar.xz |
net: fman: memac: 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.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/f2d801cd73cca36a7162819289480d7fc91fcc7e.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