ARM: footbridge: nw_gpio_lock is raw_spin_lock
bd31b85960
"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>
此提交包含在:
@@ -74,21 +74,21 @@ static inline void netwinder_ds1620_reset(void)
|
||||
|
||||
static inline void netwinder_lock(unsigned long *flags)
|
||||
{
|
||||
spin_lock_irqsave(&nw_gpio_lock, *flags);
|
||||
raw_spin_lock_irqsave(&nw_gpio_lock, *flags);
|
||||
}
|
||||
|
||||
static inline void netwinder_unlock(unsigned long *flags)
|
||||
{
|
||||
spin_unlock_irqrestore(&nw_gpio_lock, *flags);
|
||||
raw_spin_unlock_irqrestore(&nw_gpio_lock, *flags);
|
||||
}
|
||||
|
||||
static inline void netwinder_set_fan(int i)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&nw_gpio_lock, flags);
|
||||
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
|
||||
nw_gpio_modify_op(GPIO_FAN, i ? GPIO_FAN : 0);
|
||||
spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
||||
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
||||
}
|
||||
|
||||
static inline int netwinder_get_fan(void)
|
||||
|
新增問題並參考
封鎖使用者