diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-03-01 19:57:19 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-03-22 11:53:00 +0100 |
commit | f9a8ee8c8bcd118e800d88772c6457381db45224 (patch) | |
tree | 18be07fd64944b700602491de24a6a0eabc89826 /drivers/pwm/pwm-bcm2835.c | |
parent | pwm: imx-tpm: Use a single line for error message (diff) | |
download | linux-f9a8ee8c8bcd118e800d88772c6457381db45224.tar.xz linux-f9a8ee8c8bcd118e800d88772c6457381db45224.zip |
pwm: Always allocate PWM chip base ID dynamically
Since commit 5e5da1e9fbee ("pwm: ab8500: Explicitly allocate pwm chip
base dynamically") all drivers use dynamic ID allocation explicitly. New
drivers are supposed to do the same, so remove support for driver
specified base IDs and drop all assignments in the low-level drivers.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-bcm2835.c')
-rw-r--r-- | drivers/pwm/pwm-bcm2835.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c index d593cce249d9..e4b54675b356 100644 --- a/drivers/pwm/pwm-bcm2835.c +++ b/drivers/pwm/pwm-bcm2835.c @@ -158,7 +158,6 @@ static int bcm2835_pwm_probe(struct platform_device *pdev) pc->chip.dev = &pdev->dev; pc->chip.ops = &bcm2835_pwm_ops; - pc->chip.base = -1; pc->chip.npwm = 2; pc->chip.of_xlate = of_pwm_xlate_with_flags; pc->chip.of_pwm_n_cells = 3; |