diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-19 18:59:27 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:53:14 -0500 |
commit | 2fe062608086f9b74a80f16272c5a59a3e05722f (patch) | |
tree | d6ee7a2a40522345829b1aca0bc128d125da7d19 | |
parent | 1b362e3e350f72c6cb4b3346f6ba92a529082a09 (diff) |
MIPS: Cleanup switches with cases that can be merged
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
To: linux-mips@linux-mips.org
To: Andrew Morton <akpm@linux-foundation.org>
To: LKML <linux-kernel@vger.kernel.org>
Patchwork: http://patchwork.linux-mips.org/patch/860/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/include/asm/octeon/octeon-feature.h | 8 | ||||
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 3 | ||||
-rw-r--r-- | arch/mips/math-emu/ieee754dp.c | 1 | ||||
-rw-r--r-- | arch/mips/math-emu/ieee754sp.c | 1 | ||||
-rw-r--r-- | arch/mips/pci/pci-octeon.c | 6 | ||||
-rw-r--r-- | arch/mips/powertv/asic/asic_devices.c | 4 | ||||
-rw-r--r-- | arch/mips/sgi-ip32/ip32-irq.c | 9 |
7 files changed, 5 insertions, 27 deletions
diff --git a/arch/mips/include/asm/octeon/octeon-feature.h b/arch/mips/include/asm/octeon/octeon-feature.h index ef24a7b4ea57..cba6fbed9f43 100644 --- a/arch/mips/include/asm/octeon/octeon-feature.h +++ b/arch/mips/include/asm/octeon/octeon-feature.h | |||
@@ -99,6 +99,8 @@ static inline int octeon_has_feature(enum octeon_feature feature) | |||
99 | return !cvmx_fuse_read(90); | 99 | return !cvmx_fuse_read(90); |
100 | 100 | ||
101 | case OCTEON_FEATURE_PCIE: | 101 | case OCTEON_FEATURE_PCIE: |
102 | case OCTEON_FEATURE_MGMT_PORT: | ||
103 | case OCTEON_FEATURE_RAID: | ||
102 | return OCTEON_IS_MODEL(OCTEON_CN56XX) | 104 | return OCTEON_IS_MODEL(OCTEON_CN56XX) |
103 | || OCTEON_IS_MODEL(OCTEON_CN52XX); | 105 | || OCTEON_IS_MODEL(OCTEON_CN52XX); |
104 | 106 | ||
@@ -110,12 +112,6 @@ static inline int octeon_has_feature(enum octeon_feature feature) | |||
110 | case OCTEON_FEATURE_TRA: | 112 | case OCTEON_FEATURE_TRA: |
111 | return !(OCTEON_IS_MODEL(OCTEON_CN30XX) | 113 | return !(OCTEON_IS_MODEL(OCTEON_CN30XX) |
112 | || OCTEON_IS_MODEL(OCTEON_CN50XX)); | 114 | || OCTEON_IS_MODEL(OCTEON_CN50XX)); |
113 | case OCTEON_FEATURE_MGMT_PORT: | ||
114 | return OCTEON_IS_MODEL(OCTEON_CN56XX) | ||
115 | || OCTEON_IS_MODEL(OCTEON_CN52XX); | ||
116 | case OCTEON_FEATURE_RAID: | ||
117 | return OCTEON_IS_MODEL(OCTEON_CN56XX) | ||
118 | || OCTEON_IS_MODEL(OCTEON_CN52XX); | ||
119 | case OCTEON_FEATURE_USB: | 115 | case OCTEON_FEATURE_USB: |
120 | return !(OCTEON_IS_MODEL(OCTEON_CN38XX) | 116 | return !(OCTEON_IS_MODEL(OCTEON_CN38XX) |
121 | || OCTEON_IS_MODEL(OCTEON_CN58XX)); | 117 | || OCTEON_IS_MODEL(OCTEON_CN58XX)); |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 323395081b2a..1773544e3dbb 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -746,9 +746,6 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) | |||
746 | __cpu_name[cpu] = "MIPS 4Kc"; | 746 | __cpu_name[cpu] = "MIPS 4Kc"; |
747 | break; | 747 | break; |
748 | case PRID_IMP_4KEC: | 748 | case PRID_IMP_4KEC: |
749 | c->cputype = CPU_4KEC; | ||
750 | __cpu_name[cpu] = "MIPS 4KEc"; | ||
751 | break; | ||
752 | case PRID_IMP_4KECR2: | 749 | case PRID_IMP_4KECR2: |
753 | c->cputype = CPU_4KEC; | 750 | c->cputype = CPU_4KEC; |
754 | __cpu_name[cpu] = "MIPS 4KEc"; | 751 | __cpu_name[cpu] = "MIPS 4KEc"; |
diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c index 6d2d89f32472..2f22fd7fd784 100644 --- a/arch/mips/math-emu/ieee754dp.c +++ b/arch/mips/math-emu/ieee754dp.c | |||
@@ -148,7 +148,6 @@ ieee754dp ieee754dp_format(int sn, int xe, u64 xm) | |||
148 | 148 | ||
149 | switch(ieee754_csr.rm) { | 149 | switch(ieee754_csr.rm) { |
150 | case IEEE754_RN: | 150 | case IEEE754_RN: |
151 | return ieee754dp_zero(sn); | ||
152 | case IEEE754_RZ: | 151 | case IEEE754_RZ: |
153 | return ieee754dp_zero(sn); | 152 | return ieee754dp_zero(sn); |
154 | case IEEE754_RU: /* toward +Infinity */ | 153 | case IEEE754_RU: /* toward +Infinity */ |
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c index 463534045ab6..a19b72185ab9 100644 --- a/arch/mips/math-emu/ieee754sp.c +++ b/arch/mips/math-emu/ieee754sp.c | |||
@@ -149,7 +149,6 @@ ieee754sp ieee754sp_format(int sn, int xe, unsigned xm) | |||
149 | 149 | ||
150 | switch(ieee754_csr.rm) { | 150 | switch(ieee754_csr.rm) { |
151 | case IEEE754_RN: | 151 | case IEEE754_RN: |
152 | return ieee754sp_zero(sn); | ||
153 | case IEEE754_RZ: | 152 | case IEEE754_RZ: |
154 | return ieee754sp_zero(sn); | 153 | return ieee754sp_zero(sn); |
155 | case IEEE754_RU: /* toward +Infinity */ | 154 | case IEEE754_RU: /* toward +Infinity */ |
diff --git a/arch/mips/pci/pci-octeon.c b/arch/mips/pci/pci-octeon.c index 9cb0c807f564..d248b707eff3 100644 --- a/arch/mips/pci/pci-octeon.c +++ b/arch/mips/pci/pci-octeon.c | |||
@@ -209,16 +209,14 @@ const char *octeon_get_pci_interrupts(void) | |||
209 | case CVMX_BOARD_TYPE_NAO38: | 209 | case CVMX_BOARD_TYPE_NAO38: |
210 | /* This is really the NAC38 */ | 210 | /* This is really the NAC38 */ |
211 | return "AAAAADABAAAAAAAAAAAAAAAAAAAAAAAA"; | 211 | return "AAAAADABAAAAAAAAAAAAAAAAAAAAAAAA"; |
212 | case CVMX_BOARD_TYPE_THUNDER: | ||
213 | return ""; | ||
214 | case CVMX_BOARD_TYPE_EBH3000: | ||
215 | return ""; | ||
216 | case CVMX_BOARD_TYPE_EBH3100: | 212 | case CVMX_BOARD_TYPE_EBH3100: |
217 | case CVMX_BOARD_TYPE_CN3010_EVB_HS5: | 213 | case CVMX_BOARD_TYPE_CN3010_EVB_HS5: |
218 | case CVMX_BOARD_TYPE_CN3005_EVB_HS5: | 214 | case CVMX_BOARD_TYPE_CN3005_EVB_HS5: |
219 | return "AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; | 215 | return "AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; |
220 | case CVMX_BOARD_TYPE_BBGW_REF: | 216 | case CVMX_BOARD_TYPE_BBGW_REF: |
221 | return "AABCD"; | 217 | return "AABCD"; |
218 | case CVMX_BOARD_TYPE_THUNDER: | ||
219 | case CVMX_BOARD_TYPE_EBH3000: | ||
222 | default: | 220 | default: |
223 | return ""; | 221 | return ""; |
224 | } | 222 | } |
diff --git a/arch/mips/powertv/asic/asic_devices.c b/arch/mips/powertv/asic/asic_devices.c index 6a882194e063..217424231eb6 100644 --- a/arch/mips/powertv/asic/asic_devices.c +++ b/arch/mips/powertv/asic/asic_devices.c | |||
@@ -340,10 +340,6 @@ static void __init platform_configure_usb(void) | |||
340 | 340 | ||
341 | switch (asic) { | 341 | switch (asic) { |
342 | case ASIC_ZEUS: | 342 | case ASIC_ZEUS: |
343 | fs_update(0x0000, 0x11, 0x02, 0); | ||
344 | bcm1_usb2_ctl = 0x803; | ||
345 | break; | ||
346 | |||
347 | case ASIC_CRONUS: | 343 | case ASIC_CRONUS: |
348 | case ASIC_CRONUSLITE: | 344 | case ASIC_CRONUSLITE: |
349 | fs_update(0x0000, 0x11, 0x02, 0); | 345 | fs_update(0x0000, 0x11, 0x02, 0); |
diff --git a/arch/mips/sgi-ip32/ip32-irq.c b/arch/mips/sgi-ip32/ip32-irq.c index 5c2bf111ca67..d8b65204d288 100644 --- a/arch/mips/sgi-ip32/ip32-irq.c +++ b/arch/mips/sgi-ip32/ip32-irq.c | |||
@@ -512,10 +512,6 @@ void __init arch_init_irq(void) | |||
512 | "level"); | 512 | "level"); |
513 | break; | 513 | break; |
514 | 514 | ||
515 | case CRIME_GBE0_IRQ ... CRIME_GBE3_IRQ: | ||
516 | set_irq_chip_and_handler_name(irq, | ||
517 | &crime_edge_interrupt, handle_edge_irq, "edge"); | ||
518 | break; | ||
519 | case CRIME_CPUERR_IRQ: | 515 | case CRIME_CPUERR_IRQ: |
520 | case CRIME_MEMERR_IRQ: | 516 | case CRIME_MEMERR_IRQ: |
521 | set_irq_chip_and_handler_name(irq, | 517 | set_irq_chip_and_handler_name(irq, |
@@ -523,12 +519,9 @@ void __init arch_init_irq(void) | |||
523 | "level"); | 519 | "level"); |
524 | break; | 520 | break; |
525 | 521 | ||
522 | case CRIME_GBE0_IRQ ... CRIME_GBE3_IRQ: | ||
526 | case CRIME_RE_EMPTY_E_IRQ ... CRIME_RE_IDLE_E_IRQ: | 523 | case CRIME_RE_EMPTY_E_IRQ ... CRIME_RE_IDLE_E_IRQ: |
527 | case CRIME_SOFT0_IRQ ... CRIME_SOFT2_IRQ: | 524 | case CRIME_SOFT0_IRQ ... CRIME_SOFT2_IRQ: |
528 | set_irq_chip_and_handler_name(irq, | ||
529 | &crime_edge_interrupt, handle_edge_irq, "edge"); | ||
530 | break; | ||
531 | |||
532 | case CRIME_VICE_IRQ: | 525 | case CRIME_VICE_IRQ: |
533 | set_irq_chip_and_handler_name(irq, | 526 | set_irq_chip_and_handler_name(irq, |
534 | &crime_edge_interrupt, handle_edge_irq, "edge"); | 527 | &crime_edge_interrupt, handle_edge_irq, "edge"); |