]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pwm: pxa: Remove PWM_ID_BASE macro
authorAxel Lin <axel.lin@ingics.com>
Mon, 1 Apr 2013 07:41:22 +0000 (15:41 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Tue, 2 Apr 2013 09:40:17 +0000 (11:40 +0200)
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>
drivers/pwm/pwm-pxa.c

index b78988255aeeb3538105515a684837bdba4f9b32..dee6ab552a0a9439c968c695574e14e001a67339 100644 (file)
 #include <asm/div64.h>
 
 #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);