Skip to content
Commit 5b1e8e06 authored by Beniamino Galvani's avatar Beniamino Galvani Committed by Thierry Reding
Browse files

pwm: spear: fix check on pwmchip_add() return value



pwmchip_add() returns zero on success and a negative value on error,
so the condition of the check must be inverted.

Signed-off-by: default avatarBeniamino Galvani <b.galvani@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 257462db
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment