Skip to content
Commit 655a0355 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: Return -ENODEV if no PWM lookup match is found



When looking up a PWM using the lookup table, assume that all entries
will have been added already, so failure to find a match means that no
corresponding entry has been registered.

This fixes an issue where -EPROBE_DEFER would be returned if the PWM
lookup table is empty. After this fix, -EPROBE_DEFER is reserved for
situations where no provider has yet registered for a matching entry.

Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent f6649f7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment