mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
pwm: lpc32xx: Set the chip base for dynamic allocation
Doing so allows the base to be allocated dynamically at runtime and makes it easier for the chip to coexist with other PWM chips. Signed-off-by: Alban Bedel <[email protected]> Acked-by: Alexandre Pereira da Silva <[email protected]> Acked-by: Roland Stigge <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
parent
54b2a999a1
commit
8fc6d09dcb
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ static int lpc32xx_pwm_probe(struct platform_device *pdev)
|
|||
lpc32xx->chip.dev = &pdev->dev;
|
||||
lpc32xx->chip.ops = &lpc32xx_pwm_ops;
|
||||
lpc32xx->chip.npwm = 2;
|
||||
lpc32xx->chip.base = -1;
|
||||
|
||||
ret = pwmchip_add(&lpc32xx->chip);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue