Skip to content

Commit

Permalink
[CRISv32] Remove warning in io.h
Browse files Browse the repository at this point in the history
Variable flags need to be unsigned.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Jesper Nilsson committed Oct 23, 2008
1 parent 2515ddc commit a54373e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-cris/arch-v32/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern struct crisv32_iopin crisv32_led_net1_red;

static inline void crisv32_io_set(struct crisv32_iopin *iopin, int val)
{
long flags;
unsigned long flags;
spin_lock_irqsave(&iopin->port->lock, flags);

if (val)
Expand All @@ -57,7 +57,7 @@ static inline void crisv32_io_set(struct crisv32_iopin *iopin, int val)
static inline void crisv32_io_set_dir(struct crisv32_iopin* iopin,
enum crisv32_io_dir dir)
{
long flags;
unsigned long flags;
spin_lock_irqsave(&iopin->port->lock, flags);

if (dir == crisv32_io_dir_in)
Expand Down

0 comments on commit a54373e

Please sign in to comment.