Message ID | 20211209220851.1319460-1-u.kleine-koenig@pengutronix.de |
---|---|
State | Accepted |
Headers | show |
Series | pwm: raspberrypi-poe: Drop assignment to struct pwmchip::base | expand |
On Thu, 2021-12-09 at 23:08 +0100, Uwe Kleine-König wrote: > Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID > dynamically") there is no effect any more for assigning this variable. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > --- Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org> Regards, Nicolas
On Thu, Dec 09, 2021 at 11:08:51PM +0100, Uwe Kleine-König wrote: > Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID > dynamically") there is no effect any more for assigning this variable. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > --- > drivers/pwm/pwm-raspberrypi-poe.c | 1 - > 1 file changed, 1 deletion(-) Applied, thanks. Thierry
diff --git a/drivers/pwm/pwm-raspberrypi-poe.c b/drivers/pwm/pwm-raspberrypi-poe.c index 579a15240e0a..e52e29fc8231 100644 --- a/drivers/pwm/pwm-raspberrypi-poe.c +++ b/drivers/pwm/pwm-raspberrypi-poe.c @@ -163,7 +163,6 @@ static int raspberrypi_pwm_probe(struct platform_device *pdev) rpipwm->firmware = firmware; rpipwm->chip.dev = dev; rpipwm->chip.ops = &raspberrypi_pwm_ops; - rpipwm->chip.base = -1; rpipwm->chip.npwm = RASPBERRYPI_FIRMWARE_PWM_NUM; ret = raspberrypi_pwm_get_property(rpipwm->firmware, RPI_PWM_CUR_DUTY_REG,
Since commit f9a8ee8c8bcd ("pwm: Always allocate PWM chip base ID dynamically") there is no effect any more for assigning this variable. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- drivers/pwm/pwm-raspberrypi-poe.c | 1 - 1 file changed, 1 deletion(-)