diff options
Diffstat (limited to 'arch/arm/plat-samsung/devs.c')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index bba6d78a4c24..290f63a7aa64 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -1099,22 +1099,9 @@ arch_initcall(s5p_pmu_init); | |||
1099 | 1099 | ||
1100 | #ifdef CONFIG_SAMSUNG_DEV_PWM | 1100 | #ifdef CONFIG_SAMSUNG_DEV_PWM |
1101 | 1101 | ||
1102 | #define TIMER_RESOURCE_SIZE (1) | 1102 | #define DEFINE_S3C_TIMER(_tmr_no) \ |
1103 | |||
1104 | #define TIMER_RESOURCE(_tmr, _irq) \ | ||
1105 | (struct resource [TIMER_RESOURCE_SIZE]) { \ | ||
1106 | [0] = { \ | ||
1107 | .start = _irq, \ | ||
1108 | .end = _irq, \ | ||
1109 | .flags = IORESOURCE_IRQ \ | ||
1110 | } \ | ||
1111 | } | ||
1112 | |||
1113 | #define DEFINE_S3C_TIMER(_tmr_no, _irq) \ | ||
1114 | .name = "s3c24xx-pwm", \ | 1103 | .name = "s3c24xx-pwm", \ |
1115 | .id = _tmr_no, \ | 1104 | .id = _tmr_no, \ |
1116 | .num_resources = TIMER_RESOURCE_SIZE, \ | ||
1117 | .resource = TIMER_RESOURCE(_tmr_no, _irq), \ | ||
1118 | 1105 | ||
1119 | /* | 1106 | /* |
1120 | * since we already have an static mapping for the timer, | 1107 | * since we already have an static mapping for the timer, |
@@ -1122,11 +1109,11 @@ arch_initcall(s5p_pmu_init); | |||
1122 | */ | 1109 | */ |
1123 | 1110 | ||
1124 | struct platform_device s3c_device_timer[] = { | 1111 | struct platform_device s3c_device_timer[] = { |
1125 | [0] = { DEFINE_S3C_TIMER(0, IRQ_TIMER0) }, | 1112 | [0] = { DEFINE_S3C_TIMER(0) }, |
1126 | [1] = { DEFINE_S3C_TIMER(1, IRQ_TIMER1) }, | 1113 | [1] = { DEFINE_S3C_TIMER(1) }, |
1127 | [2] = { DEFINE_S3C_TIMER(2, IRQ_TIMER2) }, | 1114 | [2] = { DEFINE_S3C_TIMER(2) }, |
1128 | [3] = { DEFINE_S3C_TIMER(3, IRQ_TIMER3) }, | 1115 | [3] = { DEFINE_S3C_TIMER(3) }, |
1129 | [4] = { DEFINE_S3C_TIMER(4, IRQ_TIMER4) }, | 1116 | [4] = { DEFINE_S3C_TIMER(4) }, |
1130 | }; | 1117 | }; |
1131 | 1118 | ||
1132 | static struct resource samsung_pwm_resource[] = { | 1119 | static struct resource samsung_pwm_resource[] = { |