mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
ARM: sa11x0: neponset: provide function to manipulate NCR_0
Rather than having direct register accesses to NCR_0 scattered amongst the code, provide a function instead. This contains the necessary race protection for this platform, ensuring that updates to this register are safe. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
710455201f
commit
6ad1b61400
4 changed files with 15 additions and 7 deletions
|
|
@ -94,12 +94,7 @@ neponset_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_sta
|
|||
|
||||
ret = sa1111_pcmcia_configure_socket(skt, state);
|
||||
if (ret == 0) {
|
||||
unsigned long flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
NCR_0 = (NCR_0 & ~ncr_mask) | ncr_set;
|
||||
|
||||
local_irq_restore(flags);
|
||||
neponset_ncr_frob(ncr_mask, ncr_set);
|
||||
sa1111_set_io(s->dev, pa_dwr_mask, pa_dwr_set);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue