Skip to content

Commit

Permalink
pwm: lpc32xx: Set the chip base for dynamic allocation
Browse files Browse the repository at this point in the history
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 <alban.bedel@avionic-design.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
  • Loading branch information
Alban Bedel authored and Thierry Reding committed Dec 6, 2012
1 parent 54b2a99 commit 8fc6d09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-lpc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8fc6d09

Please sign in to comment.