From: Uwe Kleine-König Date: Wed, 7 Jul 2021 16:27:57 +0000 (+0200) Subject: pwm: ntxec: Drop useless assignment to struct pwmchip::base X-Git-Tag: v5.15-rc1~23^2~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97966ade662e912cbbbf4ff101baccf8b0bac9ae;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-ntxec.c b/drivers/pwm/pwm-ntxec.c index 50c454c553c46..29a463b7d63ae 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);