]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Return -ENODEV if no PWM lookup match is found
authorThierry Reding <thierry.reding@gmail.com>
Mon, 5 Oct 2015 12:38:32 +0000 (14:38 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 10 Nov 2015 12:06:42 +0000 (13:06 +0100)
commitad676b9880de4cd96cf7f524d38caf348d6b3a92
tree7e43fd930cc726ad92f0a331493e3f8521603918
parent7583d5f56028599269c96a73a62ca7664f29fc5a
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>
drivers/pwm/core.c