diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-09-04 15:53:13 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2017-10-23 08:49:25 +0300 |
commit | 11a6e41c0ee503ffcb971d260bd07dc99b77f13a (patch) | |
tree | 1ab129285ed571d6c75592a454365a1629cb9e92 /drivers/phy | |
parent | 5954a10e8e12ddffd54bfb6b3365aec2c31aa615 (diff) | |
download | linux-11a6e41c0ee503ffcb971d260bd07dc99b77f13a.tar.xz |
phy: Return NULL if the phy is optional
If we're trying to get a handle to an optional phy, then the phy framework
being disabled shouldn't return an hard error.
Instead, return NULL just like phy_optional_get does when there's no phy
provided in the DT.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions