diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-23 16:44:29 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-23 16:44:29 +0200 |
commit | a54373eee6e9f5e986a251e852ee1bb83e03671b (patch) | |
tree | 742da7a21e021cec35c505993b78ad9ba1ea5ee3 /include/asm-cris | |
parent | 2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff) | |
download | lwn-a54373eee6e9f5e986a251e852ee1bb83e03671b.tar.gz lwn-a54373eee6e9f5e986a251e852ee1bb83e03671b.zip |
[CRISv32] Remove warning in io.h
Variable flags need to be unsigned.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'include/asm-cris')
-rw-r--r-- | include/asm-cris/arch-v32/io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-cris/arch-v32/io.h b/include/asm-cris/arch-v32/io.h index 6b38912f29ba..72024452cea9 100644 --- a/include/asm-cris/arch-v32/io.h +++ b/include/asm-cris/arch-v32/io.h @@ -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) @@ -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) |