Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Thierry Reding
97966ade 1a0c97b6

-1
-1
drivers/pwm/pwm-ntxec.c
··· 155 155 chip = &priv->chip; 156 156 chip->dev = &pdev->dev; 157 157 chip->ops = &ntxec_pwm_ops; 158 - chip->base = -1; 159 158 chip->npwm = 1; 160 159 161 160 return pwmchip_add(chip);