staging: greybus: pwm: Drop assignment to struct pwm_chip::base
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 11 Apr 2022 11:30:10 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2022 13:49:20 +0000 (15:49 +0200)
Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID
dynamically") the value held in base isn't used any more in the PWM
framework. All PMWs get assigned a dynamic ID, so the assignment is
redundant and can be dropped.

Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220411113010.208500-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/pwm.c

index ad20ec2..3fda172 100644 (file)
@@ -297,7 +297,6 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
 
        pwm->dev = &gbphy_dev->dev;
        pwm->ops = &gb_pwm_ops;
-       pwm->base = -1;                 /* Allocate base dynamically */
        pwm->npwm = pwmc->pwm_max + 1;
 
        ret = pwmchip_add(pwm);