aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDmitri Vorobiev <dmitri.vorobiev@gmail.com>2008-01-24 11:52:45 -0500
committerRalf Baechle <ralf@linux-mips.org>2008-01-29 05:15:03 -0500
commitaf825586c04d5ab9871d3980db9a0aa23197789e (patch)
tree95c8446a32c08aa29992c2bf1666337aa6dc4403 /arch
parenta382963edc55815b9ec56259c87b1405083acadf (diff)
[MIPS] Malta: use tabs not spaces
This patch fixes all "use tabs not spaces" warnings reported by the checkpatch.pl script on the board-specific files. No functional changes introduced. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mips-boards/malta/malta_int.c64
-rw-r--r--arch/mips/mips-boards/malta/malta_smtc.c2
2 files changed, 33 insertions, 33 deletions
diff --git a/arch/mips/mips-boards/malta/malta_int.c b/arch/mips/mips-boards/malta/malta_int.c
index 2483b4068e2d..6d371f4ac358 100644
--- a/arch/mips/mips-boards/malta/malta_int.c
+++ b/arch/mips/mips-boards/malta/malta_int.c
@@ -47,7 +47,7 @@ static DEFINE_SPINLOCK(mips_irq_lock);
47static inline int mips_pcibios_iack(void) 47static inline int mips_pcibios_iack(void)
48{ 48{
49 int irq; 49 int irq;
50 u32 dummy; 50 u32 dummy;
51 51
52 /* 52 /*
53 * Determine highest priority pending interrupt by performing 53 * Determine highest priority pending interrupt by performing
@@ -58,7 +58,7 @@ static inline int mips_pcibios_iack(void)
58 case MIPS_REVISION_SCON_ROCIT: 58 case MIPS_REVISION_SCON_ROCIT:
59 case MIPS_REVISION_SCON_SOCITSC: 59 case MIPS_REVISION_SCON_SOCITSC:
60 case MIPS_REVISION_SCON_SOCITSCP: 60 case MIPS_REVISION_SCON_SOCITSCP:
61 MSC_READ(MSC01_PCI_IACK, irq); 61 MSC_READ(MSC01_PCI_IACK, irq);
62 irq &= 0xff; 62 irq &= 0xff;
63 break; 63 break;
64 case MIPS_REVISION_SCON_GT64120: 64 case MIPS_REVISION_SCON_GT64120:
@@ -123,15 +123,15 @@ static void malta_hw0_irqdispatch(void)
123static void corehi_irqdispatch(void) 123static void corehi_irqdispatch(void)
124{ 124{
125 unsigned int intedge, intsteer, pcicmd, pcibadaddr; 125 unsigned int intedge, intsteer, pcicmd, pcibadaddr;
126 unsigned int pcimstat, intisr, inten, intpol; 126 unsigned int pcimstat, intisr, inten, intpol;
127 unsigned int intrcause, datalo, datahi; 127 unsigned int intrcause, datalo, datahi;
128 struct pt_regs *regs = get_irq_regs(); 128 struct pt_regs *regs = get_irq_regs();
129 129
130 printk(KERN_EMERG "CoreHI interrupt, shouldn't happen, we die here!\n"); 130 printk(KERN_EMERG "CoreHI interrupt, shouldn't happen, we die here!\n");
131 printk(KERN_EMERG "epc : %08lx\nStatus: %08lx\n" 131 printk(KERN_EMERG "epc : %08lx\nStatus: %08lx\n"
132 "Cause : %08lx\nbadVaddr : %08lx\n", 132 "Cause : %08lx\nbadVaddr : %08lx\n",
133 regs->cp0_epc, regs->cp0_status, 133 regs->cp0_epc, regs->cp0_status,
134 regs->cp0_cause, regs->cp0_badvaddr); 134 regs->cp0_cause, regs->cp0_badvaddr);
135 135
136 /* Read all the registers and then print them as there is a 136 /* Read all the registers and then print them as there is a
137 problem with interspersed printk's upsetting the Bonito controller. 137 problem with interspersed printk's upsetting the Bonito controller.
@@ -139,29 +139,29 @@ static void corehi_irqdispatch(void)
139 */ 139 */
140 140
141 switch (mips_revision_sconid) { 141 switch (mips_revision_sconid) {
142 case MIPS_REVISION_SCON_SOCIT: 142 case MIPS_REVISION_SCON_SOCIT:
143 case MIPS_REVISION_SCON_ROCIT: 143 case MIPS_REVISION_SCON_ROCIT:
144 case MIPS_REVISION_SCON_SOCITSC: 144 case MIPS_REVISION_SCON_SOCITSC:
145 case MIPS_REVISION_SCON_SOCITSCP: 145 case MIPS_REVISION_SCON_SOCITSCP:
146 ll_msc_irq(); 146 ll_msc_irq();
147 break; 147 break;
148 case MIPS_REVISION_SCON_GT64120: 148 case MIPS_REVISION_SCON_GT64120:
149 intrcause = GT_READ(GT_INTRCAUSE_OFS); 149 intrcause = GT_READ(GT_INTRCAUSE_OFS);
150 datalo = GT_READ(GT_CPUERR_ADDRLO_OFS); 150 datalo = GT_READ(GT_CPUERR_ADDRLO_OFS);
151 datahi = GT_READ(GT_CPUERR_ADDRHI_OFS); 151 datahi = GT_READ(GT_CPUERR_ADDRHI_OFS);
152 printk(KERN_EMERG "GT_INTRCAUSE = %08x\n", intrcause); 152 printk(KERN_EMERG "GT_INTRCAUSE = %08x\n", intrcause);
153 printk(KERN_EMERG "GT_CPUERR_ADDR = %02x%08x\n", 153 printk(KERN_EMERG "GT_CPUERR_ADDR = %02x%08x\n",
154 datahi, datalo); 154 datahi, datalo);
155 break; 155 break;
156 case MIPS_REVISION_SCON_BONITO: 156 case MIPS_REVISION_SCON_BONITO:
157 pcibadaddr = BONITO_PCIBADADDR; 157 pcibadaddr = BONITO_PCIBADADDR;
158 pcimstat = BONITO_PCIMSTAT; 158 pcimstat = BONITO_PCIMSTAT;
159 intisr = BONITO_INTISR; 159 intisr = BONITO_INTISR;
160 inten = BONITO_INTEN; 160 inten = BONITO_INTEN;
161 intpol = BONITO_INTPOL; 161 intpol = BONITO_INTPOL;
162 intedge = BONITO_INTEDGE; 162 intedge = BONITO_INTEDGE;
163 intsteer = BONITO_INTSTEER; 163 intsteer = BONITO_INTSTEER;
164 pcicmd = BONITO_PCICMD; 164 pcicmd = BONITO_PCICMD;
165 printk(KERN_EMERG "BONITO_INTISR = %08x\n", intisr); 165 printk(KERN_EMERG "BONITO_INTISR = %08x\n", intisr);
166 printk(KERN_EMERG "BONITO_INTEN = %08x\n", inten); 166 printk(KERN_EMERG "BONITO_INTEN = %08x\n", inten);
167 printk(KERN_EMERG "BONITO_INTPOL = %08x\n", intpol); 167 printk(KERN_EMERG "BONITO_INTPOL = %08x\n", intpol);
@@ -170,11 +170,11 @@ static void corehi_irqdispatch(void)
170 printk(KERN_EMERG "BONITO_PCICMD = %08x\n", pcicmd); 170 printk(KERN_EMERG "BONITO_PCICMD = %08x\n", pcicmd);
171 printk(KERN_EMERG "BONITO_PCIBADADDR = %08x\n", pcibadaddr); 171 printk(KERN_EMERG "BONITO_PCIBADADDR = %08x\n", pcibadaddr);
172 printk(KERN_EMERG "BONITO_PCIMSTAT = %08x\n", pcimstat); 172 printk(KERN_EMERG "BONITO_PCIMSTAT = %08x\n", pcimstat);
173 break; 173 break;
174 } 174 }
175 175
176 /* We die here*/ 176 /* We die here*/
177 die("CoreHi interrupt", regs); 177 die("CoreHi interrupt", regs);
178} 178}
179 179
180static inline int clz(unsigned long x) 180static inline int clz(unsigned long x)
@@ -300,17 +300,17 @@ void __init arch_init_irq(void)
300 if (!cpu_has_veic) 300 if (!cpu_has_veic)
301 mips_cpu_irq_init(); 301 mips_cpu_irq_init();
302 302
303 switch(mips_revision_sconid) { 303 switch (mips_revision_sconid) {
304 case MIPS_REVISION_SCON_SOCIT: 304 case MIPS_REVISION_SCON_SOCIT:
305 case MIPS_REVISION_SCON_ROCIT: 305 case MIPS_REVISION_SCON_ROCIT:
306 if (cpu_has_veic) 306 if (cpu_has_veic)
307 init_msc_irqs(MIPS_MSC01_IC_REG_BASE, MSC01E_INT_BASE, msc_eicirqmap, msc_nr_eicirqs); 307 init_msc_irqs(MIPS_MSC01_IC_REG_BASE, MSC01E_INT_BASE, msc_eicirqmap, msc_nr_eicirqs);
308 else 308 else
309 init_msc_irqs(MIPS_MSC01_IC_REG_BASE, MSC01C_INT_BASE, msc_irqmap, msc_nr_irqs); 309 init_msc_irqs(MIPS_MSC01_IC_REG_BASE, MSC01C_INT_BASE, msc_irqmap, msc_nr_irqs);
310 break; 310 break;
311 311
312 case MIPS_REVISION_SCON_SOCITSC: 312 case MIPS_REVISION_SCON_SOCITSC:
313 case MIPS_REVISION_SCON_SOCITSCP: 313 case MIPS_REVISION_SCON_SOCITSCP:
314 if (cpu_has_veic) 314 if (cpu_has_veic)
315 init_msc_irqs(MIPS_SOCITSC_IC_REG_BASE, MSC01E_INT_BASE, msc_eicirqmap, msc_nr_eicirqs); 315 init_msc_irqs(MIPS_SOCITSC_IC_REG_BASE, MSC01E_INT_BASE, msc_eicirqmap, msc_nr_eicirqs);
316 else 316 else
diff --git a/arch/mips/mips-boards/malta/malta_smtc.c b/arch/mips/mips-boards/malta/malta_smtc.c
index 6f051ca243fa..5ea705e49454 100644
--- a/arch/mips/mips-boards/malta/malta_smtc.c
+++ b/arch/mips/mips-boards/malta/malta_smtc.c
@@ -34,7 +34,7 @@ static void msmtc_send_ipi_mask(cpumask_t mask, unsigned int action)
34 */ 34 */
35static void __cpuinit msmtc_init_secondary(void) 35static void __cpuinit msmtc_init_secondary(void)
36{ 36{
37 void smtc_init_secondary(void); 37 void smtc_init_secondary(void);
38 int myvpe; 38 int myvpe;
39 39
40 /* Don't enable Malta I/O interrupts (IP2) for secondary VPEs */ 40 /* Don't enable Malta I/O interrupts (IP2) for secondary VPEs */