mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
ARM: footbridge: fix build warnings for netwinder
arch/arm/mach-footbridge/netwinder-hw.c:695:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type arch/arm/mach-footbridge/netwinder-hw.c:702:2: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type arch/arm/mach-footbridge/netwinder-hw.c:712:2: warning: passing argument 1 of 'spinlock_check' from incompatible pointer type arch/arm/mach-footbridge/netwinder-hw.c:714:2: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
0de0d64675
commit
8d45144254
@ -692,14 +692,14 @@ static void netwinder_led_set(struct led_classdev *cdev,
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
spin_lock_irqsave(&nw_gpio_lock, flags);
|
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
|
||||||
reg = nw_gpio_read();
|
reg = nw_gpio_read();
|
||||||
if (b != LED_OFF)
|
if (b != LED_OFF)
|
||||||
reg &= ~led->mask;
|
reg &= ~led->mask;
|
||||||
else
|
else
|
||||||
reg |= led->mask;
|
reg |= led->mask;
|
||||||
nw_gpio_modify_op(led->mask, reg);
|
nw_gpio_modify_op(led->mask, reg);
|
||||||
spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum led_brightness netwinder_led_get(struct led_classdev *cdev)
|
static enum led_brightness netwinder_led_get(struct led_classdev *cdev)
|
||||||
@ -709,9 +709,9 @@ static enum led_brightness netwinder_led_get(struct led_classdev *cdev)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
spin_lock_irqsave(&nw_gpio_lock, flags);
|
raw_spin_lock_irqsave(&nw_gpio_lock, flags);
|
||||||
reg = nw_gpio_read();
|
reg = nw_gpio_read();
|
||||||
spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
raw_spin_unlock_irqrestore(&nw_gpio_lock, flags);
|
||||||
|
|
||||||
return (reg & led->mask) ? LED_OFF : LED_FULL;
|
return (reg & led->mask) ? LED_OFF : LED_FULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user