]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pwm/pwm-atmel.c
pwm: make the PWM_POLARITY flag in DTB optional
[karo-tx-linux.git] / drivers / pwm / pwm-atmel.c
index 6e700a541ca32ded0d5881842214a53d87ffe0f6..ae7c9464bcf5a45d8738fe7212eff64cf536a991 100644 (file)
@@ -350,10 +350,8 @@ static int atmel_pwm_probe(struct platform_device *pdev)
        atmel_pwm->chip.dev = &pdev->dev;
        atmel_pwm->chip.ops = &atmel_pwm_ops;
 
-       if (pdev->dev.of_node) {
+       if (pdev->dev.of_node)
                atmel_pwm->chip.of_xlate = of_pwm_xlate_with_flags;
-               atmel_pwm->chip.of_pwm_n_cells = 3;
-       }
 
        atmel_pwm->chip.base = -1;
        atmel_pwm->chip.npwm = 4;