mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[ARM] netwinder: clean up GPIO naming
Netwinder was using gpio_xxx names which could clash with the GPIO layer. Add a 'nw_' prefix to ensure that these remain separate. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
7ec80ddf04
commit
70d13e083c
15 changed files with 64 additions and 62 deletions
|
|
@ -32,16 +32,15 @@ static struct mtd_info *dc21285_mtd;
|
|||
*/
|
||||
static void nw_en_write(void)
|
||||
{
|
||||
extern spinlock_t gpio_lock;
|
||||
unsigned long flags;
|
||||
|
||||
/*
|
||||
* we want to write a bit pattern XXX1 to Xilinx to enable
|
||||
* the write gate, which will be open for about the next 2ms.
|
||||
*/
|
||||
spin_lock_irqsave(&gpio_lock, flags);
|
||||
cpld_modify(1, 1);
|
||||
spin_unlock_irqrestore(&gpio_lock, flags);
|
||||
spin_lock_irqsave(&nw_gpio_lock, flags);
|
||||
nw_cpld_modify(CPLD_FLASH_WR_ENABLE, CPLD_FLASH_WR_ENABLE);
|
||||
spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
||||
|
||||
/*
|
||||
* let the ISA bus to catch on...
|
||||
|
|
|
|||
Loading…
Reference in a new issue