diff options
author | Thierry Reding <[email protected]> | 2019-08-29 12:53:19 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2019-09-04 15:44:05 +0100 |
commit | c1e33666c94fda365a321c471f2a82996fdf3d83 (patch) | |
tree | c7e145556d585c25fd9b5e5b454187e81002b09f /fs/btrfs/dev-replace.c | |
parent | 8f9e1641ba445437095411d9fda2324121110d5d (diff) |
PCI: iproc: Propagate errors for optional PHYs
devm_phy_get() can fail for a number of reasons besides probe deferral.
It can for example return -ENOMEM if it runs out of memory as it tries
to allocate devres structures. Propagating only -EPROBE_DEFER is
problematic because it results in these legitimately fatal errors being
treated as "PHY not specified in DT".
What we really want is to ignore the optional PHYs only if they have not
been specified in DT. devm_phy_optional_get() is a function that exactly
does what's required here, so use that instead.
Signed-off-by: Thierry Reding <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Andrew Murray <[email protected]>
Cc: Ray Jui <[email protected]>
Cc: Scott Branden <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions