pwm: Use -EINVAL for unsupported polarity
[linux-2.6-microblaze.git] / drivers / pwm / pwm-rcar.c
index 3e23f1e..002ab79 100644 (file)
@@ -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 -ENOTSUPP;
+               return -EINVAL;
 
        if (!state->enabled) {
                rcar_pwm_disable(rp);