summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-07-07 18:27:57 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-09-02 21:38:39 +0200
commit97966ade662e912cbbbf4ff101baccf8b0bac9ae (patch)
tree4bfb8457eb13ca9f45f563c0a586166f07279093
parentpwm: tiehrpwm: Unprepare clock only after the PWM was unregistered (diff)
downloadlinux-97966ade662e912cbbbf4ff101baccf8b0bac9ae.tar.xz
linux-97966ade662e912cbbbf4ff101baccf8b0bac9ae.zip
pwm: ntxec: Drop useless assignment to struct pwmchip::base
Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID dynamically") there is no effect any more for assigning this variable. When the patch resulting in f9a8ee8c8bcd was created, this driver didn't exist yet, so this was missed. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r--drivers/pwm/pwm-ntxec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-ntxec.c b/drivers/pwm/pwm-ntxec.c
index 50c454c553c4..29a463b7d63a 100644
--- a/drivers/pwm/pwm-ntxec.c
+++ b/drivers/pwm/pwm-ntxec.c
@@ -155,7 +155,6 @@ static int ntxec_pwm_probe(struct platform_device *pdev)
chip = &priv->chip;
chip->dev = &pdev->dev;
chip->ops = &ntxec_pwm_ops;
- chip->base = -1;
chip->npwm = 1;
return pwmchip_add(chip);