projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pwm: Use -EINVAL for unsupported polarity
[linux-2.6-microblaze.git]
/
drivers
/
pwm
/
pwm-rcar.c
diff --git
a/drivers/pwm/pwm-rcar.c
b/drivers/pwm/pwm-rcar.c
index
3e23f1e
..
002ab79
100644
(file)
--- a/
drivers/pwm/pwm-rcar.c
+++ b/
drivers/pwm/pwm-rcar.c
@@
-168,7
+168,7
@@
static int rcar_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
/* This HW/driver only supports normal polarity */
if (state->polarity != PWM_POLARITY_NORMAL)
- return -E
NOTSUPP
;
+ return -E
INVAL
;
if (!state->enabled) {
rcar_pwm_disable(rp);