Commit 570f1d8b authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM PATCH] 2481/1: IXP2000 - replace sti/cli with local_irq{save,restore}

Patch from Ben Dooks

Fix the following:
arch/arm/mach-ixp2000/pci.c:148: warning: `cli' is deprecated (declared at include/linux/interrupt.h:65)
arch/arm/mach-ixp2000/pci.c:161: warning: `sti' is deprecated (declared at include/linux/interrupt.h:69)
arch/arm/mach-ixp2000/pci.c:178: warning: `cli' is deprecated (declared at include/linux/interrupt.h:65)
arch/arm/mach-ixp2000/pci.c:191: warning: `sti' is deprecated (declared at include/linux/interrupt.h:69)
By replacing cli() wht local_irq_save() and sti() with local_irq_restore().
This patch has not been tested.

Signed-off-by: Ben Dooks
Signed-off-by: Russell King
parent abc03412
......@@ -142,10 +142,11 @@ int ixp2000_pci_abort_handler(unsigned long addr, unsigned int fsr, struct pt_re
{
volatile u32 temp;
unsigned long flags;
pci_master_aborts = 1;
cli();
local_irq_save(flags);
temp = *(IXP2000_PCI_CONTROL);
if (temp & ((1 << 8) | (1 << 5))) {
ixp2000_reg_write(IXP2000_PCI_CONTROL, temp);
......@@ -158,7 +159,7 @@ int ixp2000_pci_abort_handler(unsigned long addr, unsigned int fsr, struct pt_re
temp = *(IXP2000_PCI_CMDSTAT);
}
}
sti();
local_irq_restore(flags);
/*
* If it was an imprecise abort, then we need to correct the
......@@ -174,8 +175,9 @@ int
clear_master_aborts(void)
{
volatile u32 temp;
unsigned long flags;
cli();
local_irq_save(flags);
temp = *(IXP2000_PCI_CONTROL);
if (temp & ((1 << 8) | (1 << 5))) {
ixp2000_reg_write(IXP2000_PCI_CONTROL, temp);
......@@ -188,7 +190,7 @@ clear_master_aborts(void)
temp = *(IXP2000_PCI_CMDSTAT);
}
}
sti();
local_irq_restore(flags);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment