Skip to content

Commit 45ef6ac

Browse files
committed
ARM: footbridge: nw_gpio_lock is raw_spin_lock
bd31b85 "locking, ARM: Annotate low level hw locks as raw" made nw_gpio_lock a raw spinlock, but did not change all the users in device drivers. This fixes the remaining ones. sound/oss/waveartist.c: In function 'vnc_mute_spkr': sound/oss/waveartist.c:1485:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default] include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *' drivers/char/ds1620.c: In function 'netwinder_lock': drivers/char/ds1620.c:77:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default] include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *' drivers/char/nwflash.c: In function 'kick_open': drivers/char/nwflash.c:620:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type [enabled by default] include/linux/spinlock.h:272:102: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *' Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent edc9e33 commit 45ef6ac

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎drivers/char/ds1620.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ static inline void netwinder_ds1620_reset(void)
7474

7575
static inline void netwinder_lock(unsigned long *flags)
7676
{
77-
spin_lock_irqsave(&nw_gpio_lock, *flags);
77+
raw_spin_lock_irqsave(&nw_gpio_lock, *flags);
7878
}
7979

8080
static inline void netwinder_unlock(unsigned long *flags)
8181
{
82-
spin_unlock_irqrestore(&nw_gpio_lock, *flags);
82+
raw_spin_unlock_irqrestore(&nw_gpio_lock, *flags);
8383
}
8484

8585
static inline void netwinder_set_fan(int i)
8686
{
8787
unsigned long flags;
8888

89-
spin_lock_irqsave(&nw_gpio_lock, flags);
89+
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
9090
nw_gpio_modify_op(GPIO_FAN, i ? GPIO_FAN : 0);
91-
spin_unlock_irqrestore(&nw_gpio_lock, flags);
91+
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
9292
}
9393

9494
static inline int netwinder_get_fan(void)

‎drivers/char/nwflash.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,9 @@ static void kick_open(void)
617617
* we want to write a bit pattern XXX1 to Xilinx to enable
618618
* the write gate, which will be open for about the next 2ms.
619619
*/
620-
spin_lock_irqsave(&nw_gpio_lock, flags);
620+
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
621621
nw_cpld_modify(CPLD_FLASH_WR_ENABLE, CPLD_FLASH_WR_ENABLE);
622-
spin_unlock_irqrestore(&nw_gpio_lock, flags);
622+
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
623623

624624
/*
625625
* let the ISA bus to catch on...

‎sound/oss/waveartist.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,9 @@ vnc_mute_spkr(wavnc_info *devc)
14821482
{
14831483
unsigned long flags;
14841484

1485-
spin_lock_irqsave(&nw_gpio_lock, flags);
1485+
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
14861486
nw_cpld_modify(CPLD_UNMUTE, devc->spkr_mute_state ? 0 : CPLD_UNMUTE);
1487-
spin_unlock_irqrestore(&nw_gpio_lock, flags);
1487+
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
14881488
}
14891489

14901490
static void

0 commit comments

Comments
 (0)