]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pwm/pwm-samsung.c
pwm: make the PWM_POLARITY flag in DTB optional
[karo-tx-linux.git] / drivers / pwm / pwm-samsung.c
index d66529a995a193cc28057957ce408ba9daf124cb..317d7d1ca7605df23cf635fd9a99094cfd98b4c0 100644 (file)
@@ -335,9 +335,6 @@ static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm,
        writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm));
        writel(tcmp, our_chip->base + REG_TCMPB(pwm->hwpwm));
 
-       if (test_bit(PWMF_ENABLED, &pwm->flags))
-               pwm_samsung_enable(chip, pwm);
-
        chan->period_ns = period_ns;
        chan->tin_ns = tin_ns;
        chan->duty_ns = duty_ns;
@@ -487,7 +484,6 @@ static int pwm_samsung_probe(struct platform_device *pdev)
                        return ret;
 
                chip->chip.of_xlate = of_pwm_xlate_with_flags;
-               chip->chip.of_pwm_n_cells = 3;
        } else {
                if (!pdev->dev.platform_data) {
                        dev_err(&pdev->dev, "no platform data specified\n");