From: Axel Lin Date: Mon, 1 Apr 2013 07:41:22 +0000 (+0800) Subject: pwm: pxa: Remove PWM_ID_BASE macro X-Git-Tag: v3.10-rc1~79^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22976a5dada65a0f44918e91c5f1fb5041dc1d5e;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Acked-by: Eric Miao Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index b789882..dee6ab55 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -23,14 +23,13 @@ #include #define HAS_SECONDARY_PWM 0x10 -#define PWM_ID_BASE(d) ((d) & 0xf) static const struct platform_device_id pwm_id_table[] = { /* PWM has_secondary_pwm? */ { "pxa25x-pwm", 0 }, - { "pxa27x-pwm", 0 | HAS_SECONDARY_PWM }, - { "pxa168-pwm", 1 }, - { "pxa910-pwm", 1 }, + { "pxa27x-pwm", HAS_SECONDARY_PWM }, + { "pxa168-pwm", 0 }, + { "pxa910-pwm", 0 }, { }, }; MODULE_DEVICE_TABLE(platform, pwm_id_table);