Commit 55b404fd authored by Nelson Castillo's avatar Nelson Castillo Committed by Ben Dooks

[ARM] S3C24XX: Fix redefine of DEFINE_TIMER() in s3c24xx pwm-clock.c

Do not redefine the DEFINE_TIMER macro. Renamed the local macro
to DEFINE_S3C_TIMER.
Signed-off-by: default avatarNelson Castillo <nelsoneci@gmail.com>
[ben-linux@fluff.org: spelling and subject fix]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 5c37866c
...@@ -56,7 +56,7 @@ static struct clk *clk_scaler[2]; ...@@ -56,7 +56,7 @@ static struct clk *clk_scaler[2];
} \ } \
} }
#define DEFINE_TIMER(_tmr_no, _irq) \ #define DEFINE_S3C_TIMER(_tmr_no, _irq) \
.name = "s3c24xx-pwm", \ .name = "s3c24xx-pwm", \
.id = _tmr_no, \ .id = _tmr_no, \
.num_resources = TIMER_RESOURCE_SIZE, \ .num_resources = TIMER_RESOURCE_SIZE, \
...@@ -67,11 +67,11 @@ static struct clk *clk_scaler[2]; ...@@ -67,11 +67,11 @@ static struct clk *clk_scaler[2];
*/ */
struct platform_device s3c_device_timer[] = { struct platform_device s3c_device_timer[] = {
[0] = { DEFINE_TIMER(0, IRQ_TIMER0) }, [0] = { DEFINE_S3C_TIMER(0, IRQ_TIMER0) },
[1] = { DEFINE_TIMER(1, IRQ_TIMER1) }, [1] = { DEFINE_S3C_TIMER(1, IRQ_TIMER1) },
[2] = { DEFINE_TIMER(2, IRQ_TIMER2) }, [2] = { DEFINE_S3C_TIMER(2, IRQ_TIMER2) },
[3] = { DEFINE_TIMER(3, IRQ_TIMER3) }, [3] = { DEFINE_S3C_TIMER(3, IRQ_TIMER3) },
[4] = { DEFINE_TIMER(4, IRQ_TIMER4) }, [4] = { DEFINE_S3C_TIMER(4, IRQ_TIMER4) },
}; };
static inline int pwm_is_tdiv(struct pwm_device *pwm) static inline int pwm_is_tdiv(struct pwm_device *pwm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment