projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b2a99
)
pwm: lpc32xx: Set the chip base for dynamic allocation
author
Alban Bedel
<
[email protected]
>
Wed, 14 Nov 2012 11:58:15 +0000
(12:58 +0100)
committer
Thierry Reding
<
[email protected]
>
Thu, 6 Dec 2012 07:52:13 +0000
(08:52 +0100)
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]
>
drivers/pwm/pwm-lpc32xx.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-lpc32xx.c
b/drivers/pwm/pwm-lpc32xx.c
index 971874b0707a791d4c88e27af8b8a827062a86c5..81db1bd5e92d0380dba9145c99cf0ebb42839651 100644
(file)
--- a/
drivers/pwm/pwm-lpc32xx.c
+++ b/
drivers/pwm/pwm-lpc32xx.c
@@
-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) {