commit | 11a6e41c0ee503ffcb971d260bd07dc99b77f13a | [log] [tgz] |
---|---|---|
author | Maxime Ripard <maxime.ripard@free-electrons.com> | Mon Sep 04 14:53:13 2017 +0200 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Mon Oct 23 11:19:25 2017 +0530 |
tree | 1ab129285ed571d6c75592a454365a1629cb9e92 | |
parent | 5954a10e8e12ddffd54bfb6b3365aec2c31aa615 [diff] |
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>