pwm: spear: fix check on pwmchip_add() return value
authorBeniamino Galvani <b.galvani@gmail.com>
Mon, 5 May 2014 21:29:00 +0000 (23:29 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 7 May 2014 08:21:05 +0000 (10:21 +0200)
commit5b1e8e0653760ade53c0c7caaa9278c57361cb8b
tree51d7110307f587e08ef3b445cae1b18784d12729
parent257462dbf3ed233de0dc2e489dcc58579535b33f
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: Beniamino Galvani <b.galvani@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-spear.c
This page took 0.039828 seconds and 5 git commands to generate.