diff options
author | Sekhar Nori <nsekhar@ti.com> | 2010-06-28 07:46:37 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-08-05 12:58:23 -0400 |
commit | f027512db7410ed149422262b07d2c78f0a36282 (patch) | |
tree | 5b631d24ab486a68ceed0c7d72361930a3187d84 /arch/arm/mach-davinci | |
parent | a2767b41eee1267db73f405634376a1802cbe3ad (diff) |
davinci: da8xx: sparse cleanup: remove duplicate entries in irq priorities
This patch helps get rid of the following sparse warnings
of the type:
CHECK arch/arm/mach-davinci/da830.c
arch/arm/mach-davinci/da830.c:1026:3: warning: Initializer entry defined twice
arch/arm/mach-davinci/da830.c:1027:3: also defined here
coming from the irq priorities array init.
Apart from one instance of genuinie repetition, most are are instances
of multiple #defines of the same interrupt number. I have not
removed the multiple definitions from the irq.h file in the hope
that someone might decide to use them as shared interrupts at some
point of time. The priority initialization however needs to be done
only once and hence has been corrected.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/da830.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 25 |
2 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index 23e9eda5a377..ec23ab473620 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c | |||
@@ -1024,7 +1024,6 @@ static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = { | |||
1024 | [IRQ_DA8XX_EVTOUT4] = 7, | 1024 | [IRQ_DA8XX_EVTOUT4] = 7, |
1025 | [IRQ_DA8XX_EVTOUT5] = 7, | 1025 | [IRQ_DA8XX_EVTOUT5] = 7, |
1026 | [IRQ_DA8XX_EVTOUT6] = 7, | 1026 | [IRQ_DA8XX_EVTOUT6] = 7, |
1027 | [IRQ_DA8XX_EVTOUT6] = 7, | ||
1028 | [IRQ_DA8XX_EVTOUT7] = 7, | 1027 | [IRQ_DA8XX_EVTOUT7] = 7, |
1029 | [IRQ_DA8XX_CCINT0] = 7, | 1028 | [IRQ_DA8XX_CCINT0] = 7, |
1030 | [IRQ_DA8XX_CCERRINT] = 7, | 1029 | [IRQ_DA8XX_CCERRINT] = 7, |
@@ -1042,11 +1041,7 @@ static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = { | |||
1042 | [IRQ_DA8XX_TINT34_1] = 7, | 1041 | [IRQ_DA8XX_TINT34_1] = 7, |
1043 | [IRQ_DA8XX_UARTINT0] = 7, | 1042 | [IRQ_DA8XX_UARTINT0] = 7, |
1044 | [IRQ_DA8XX_KEYMGRINT] = 7, | 1043 | [IRQ_DA8XX_KEYMGRINT] = 7, |
1045 | [IRQ_DA8XX_SECINT] = 7, | ||
1046 | [IRQ_DA8XX_SECKEYERR] = 7, | ||
1047 | [IRQ_DA830_MPUERR] = 7, | 1044 | [IRQ_DA830_MPUERR] = 7, |
1048 | [IRQ_DA830_IOPUERR] = 7, | ||
1049 | [IRQ_DA830_BOOTCFGERR] = 7, | ||
1050 | [IRQ_DA8XX_CHIPINT0] = 7, | 1045 | [IRQ_DA8XX_CHIPINT0] = 7, |
1051 | [IRQ_DA8XX_CHIPINT1] = 7, | 1046 | [IRQ_DA8XX_CHIPINT1] = 7, |
1052 | [IRQ_DA8XX_CHIPINT2] = 7, | 1047 | [IRQ_DA8XX_CHIPINT2] = 7, |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 6b8331bf8cf3..68ed58a48252 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -643,7 +643,6 @@ static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | |||
643 | [IRQ_DA8XX_EVTOUT4] = 7, | 643 | [IRQ_DA8XX_EVTOUT4] = 7, |
644 | [IRQ_DA8XX_EVTOUT5] = 7, | 644 | [IRQ_DA8XX_EVTOUT5] = 7, |
645 | [IRQ_DA8XX_EVTOUT6] = 7, | 645 | [IRQ_DA8XX_EVTOUT6] = 7, |
646 | [IRQ_DA8XX_EVTOUT6] = 7, | ||
647 | [IRQ_DA8XX_EVTOUT7] = 7, | 646 | [IRQ_DA8XX_EVTOUT7] = 7, |
648 | [IRQ_DA8XX_CCINT0] = 7, | 647 | [IRQ_DA8XX_CCINT0] = 7, |
649 | [IRQ_DA8XX_CCERRINT] = 7, | 648 | [IRQ_DA8XX_CCERRINT] = 7, |
@@ -661,27 +660,7 @@ static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | |||
661 | [IRQ_DA8XX_TINT34_1] = 7, | 660 | [IRQ_DA8XX_TINT34_1] = 7, |
662 | [IRQ_DA8XX_UARTINT0] = 7, | 661 | [IRQ_DA8XX_UARTINT0] = 7, |
663 | [IRQ_DA8XX_KEYMGRINT] = 7, | 662 | [IRQ_DA8XX_KEYMGRINT] = 7, |
664 | [IRQ_DA8XX_SECINT] = 7, | ||
665 | [IRQ_DA8XX_SECKEYERR] = 7, | ||
666 | [IRQ_DA850_MPUADDRERR0] = 7, | 663 | [IRQ_DA850_MPUADDRERR0] = 7, |
667 | [IRQ_DA850_MPUPROTERR0] = 7, | ||
668 | [IRQ_DA850_IOPUADDRERR0] = 7, | ||
669 | [IRQ_DA850_IOPUPROTERR0] = 7, | ||
670 | [IRQ_DA850_IOPUADDRERR1] = 7, | ||
671 | [IRQ_DA850_IOPUPROTERR1] = 7, | ||
672 | [IRQ_DA850_IOPUADDRERR2] = 7, | ||
673 | [IRQ_DA850_IOPUPROTERR2] = 7, | ||
674 | [IRQ_DA850_BOOTCFG_ADDR_ERR] = 7, | ||
675 | [IRQ_DA850_BOOTCFG_PROT_ERR] = 7, | ||
676 | [IRQ_DA850_MPUADDRERR1] = 7, | ||
677 | [IRQ_DA850_MPUPROTERR1] = 7, | ||
678 | [IRQ_DA850_IOPUADDRERR3] = 7, | ||
679 | [IRQ_DA850_IOPUPROTERR3] = 7, | ||
680 | [IRQ_DA850_IOPUADDRERR4] = 7, | ||
681 | [IRQ_DA850_IOPUPROTERR4] = 7, | ||
682 | [IRQ_DA850_IOPUADDRERR5] = 7, | ||
683 | [IRQ_DA850_IOPUPROTERR5] = 7, | ||
684 | [IRQ_DA850_MIOPU_BOOTCFG_ERR] = 7, | ||
685 | [IRQ_DA8XX_CHIPINT0] = 7, | 664 | [IRQ_DA8XX_CHIPINT0] = 7, |
686 | [IRQ_DA8XX_CHIPINT1] = 7, | 665 | [IRQ_DA8XX_CHIPINT1] = 7, |
687 | [IRQ_DA8XX_CHIPINT2] = 7, | 666 | [IRQ_DA8XX_CHIPINT2] = 7, |
@@ -722,8 +701,6 @@ static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | |||
722 | [IRQ_DA8XX_EHRPWM1] = 7, | 701 | [IRQ_DA8XX_EHRPWM1] = 7, |
723 | [IRQ_DA8XX_EHRPWM1TZ] = 7, | 702 | [IRQ_DA8XX_EHRPWM1TZ] = 7, |
724 | [IRQ_DA850_SATAINT] = 7, | 703 | [IRQ_DA850_SATAINT] = 7, |
725 | [IRQ_DA850_TINT12_2] = 7, | ||
726 | [IRQ_DA850_TINT34_2] = 7, | ||
727 | [IRQ_DA850_TINTALL_2] = 7, | 704 | [IRQ_DA850_TINTALL_2] = 7, |
728 | [IRQ_DA8XX_ECAP0] = 7, | 705 | [IRQ_DA8XX_ECAP0] = 7, |
729 | [IRQ_DA8XX_ECAP1] = 7, | 706 | [IRQ_DA8XX_ECAP1] = 7, |
@@ -751,8 +728,6 @@ static u8 da850_default_priorities[DA850_N_CP_INTC_IRQ] = { | |||
751 | [IRQ_DA850_CCINT1] = 7, | 728 | [IRQ_DA850_CCINT1] = 7, |
752 | [IRQ_DA850_CCERRINT1] = 7, | 729 | [IRQ_DA850_CCERRINT1] = 7, |
753 | [IRQ_DA850_TCERRINT2] = 7, | 730 | [IRQ_DA850_TCERRINT2] = 7, |
754 | [IRQ_DA850_TINT12_3] = 7, | ||
755 | [IRQ_DA850_TINT34_3] = 7, | ||
756 | [IRQ_DA850_TINTALL_3] = 7, | 731 | [IRQ_DA850_TINTALL_3] = 7, |
757 | [IRQ_DA850_MCBSP0RINT] = 7, | 732 | [IRQ_DA850_MCBSP0RINT] = 7, |
758 | [IRQ_DA850_MCBSP0XINT] = 7, | 733 | [IRQ_DA850_MCBSP0XINT] = 7, |