projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2515ddc
)
[CRISv32] Remove warning in io.h
author
Jesper Nilsson
<jesper.nilsson@axis.com>
Thu, 23 Oct 2008 14:44:29 +0000
(16:44 +0200)
committer
Jesper Nilsson
<jesper.nilsson@axis.com>
Thu, 23 Oct 2008 14:44:29 +0000
(16:44 +0200)
Variable flags need to be unsigned.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
include/asm-cris/arch-v32/io.h
patch
|
blob
|
history
diff --git
a/include/asm-cris/arch-v32/io.h
b/include/asm-cris/arch-v32/io.h
index
6b38912
..
7202445
100644
(file)
--- 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)