From: Jesper Nilsson Date: Thu, 23 Oct 2008 14:44:29 +0000 (+0200) Subject: [CRISv32] Remove warning in io.h X-Git-Tag: v2.6.28-rc3~16^2~1^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a54373eee6e9f5e986a251e852ee1bb83e03671b;p=linux-2.6-omap-h63xx.git [CRISv32] Remove warning in io.h Variable flags need to be unsigned. Signed-off-by: Jesper Nilsson --- diff --git a/include/asm-cris/arch-v32/io.h b/include/asm-cris/arch-v32/io.h index 6b38912f29b..72024452cea 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)