diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-01 03:41:22 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-02 05:40:17 -0400 |
commit | 22976a5dada65a0f44918e91c5f1fb5041dc1d5e (patch) | |
tree | 5db3bbefcdd0196c3d78a917f80cdb7d2573a507 /drivers/pwm/pwm-pxa.c | |
parent | b3fef7f10010e7946b3db1a34d8e0208e4f10001 (diff) |
pwm: pxa: Remove PWM_ID_BASE macro
PWM_ID_BASE() is not used after convert to PWM framework, remove it.
Also update driver_data field of struct platform_device_id accordingly.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm/pwm-pxa.c')
-rw-r--r-- | drivers/pwm/pwm-pxa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index b78988255aee..dee6ab552a0a 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c | |||
@@ -23,14 +23,13 @@ | |||
23 | #include <asm/div64.h> | 23 | #include <asm/div64.h> |
24 | 24 | ||
25 | #define HAS_SECONDARY_PWM 0x10 | 25 | #define HAS_SECONDARY_PWM 0x10 |
26 | #define PWM_ID_BASE(d) ((d) & 0xf) | ||
27 | 26 | ||
28 | static const struct platform_device_id pwm_id_table[] = { | 27 | static const struct platform_device_id pwm_id_table[] = { |
29 | /* PWM has_secondary_pwm? */ | 28 | /* PWM has_secondary_pwm? */ |
30 | { "pxa25x-pwm", 0 }, | 29 | { "pxa25x-pwm", 0 }, |
31 | { "pxa27x-pwm", 0 | HAS_SECONDARY_PWM }, | 30 | { "pxa27x-pwm", HAS_SECONDARY_PWM }, |
32 | { "pxa168-pwm", 1 }, | 31 | { "pxa168-pwm", 0 }, |
33 | { "pxa910-pwm", 1 }, | 32 | { "pxa910-pwm", 0 }, |
34 | { }, | 33 | { }, |
35 | }; | 34 | }; |
36 | MODULE_DEVICE_TABLE(platform, pwm_id_table); | 35 | MODULE_DEVICE_TABLE(platform, pwm_id_table); |