summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-atmel-hlcdc.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2015-10-05 12:38:32 (GMT)
committerThierry Reding <thierry.reding@gmail.com>2015-11-10 12:06:42 (GMT)
commit655a03554cbdf73e8114367441f10858baac59bf (patch)
tree7e43fd930cc726ad92f0a331493e3f8521603918 /drivers/pwm/pwm-atmel-hlcdc.c
parentf6649f7ad8efbaf82679ab0ccdfe837a65bd58d8 (diff)
downloadlinux-655a03554cbdf73e8114367441f10858baac59bf.tar.xz
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: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-atmel-hlcdc.c')
0 files changed, 0 insertions, 0 deletions