Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
59c29017
Commit
59c29017
authored
Jan 10, 2010
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IXP4xx: Fix sparse warnings in I/O primitives.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
0409cb0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/arm/mach-ixp4xx/include/mach/io.h
arch/arm/mach-ixp4xx/include/mach/io.h
+3
-3
No files found.
arch/arm/mach-ixp4xx/include/mach/io.h
View file @
59c29017
...
...
@@ -353,7 +353,7 @@ static inline unsigned int ioread8(const void __iomem *addr)
return
(
unsigned
int
)
inb
(
port
&
PIO_MASK
);
else
#ifndef CONFIG_IXP4XX_INDIRECT_PCI
return
(
unsigned
int
)
__raw_readb
(
port
);
return
(
unsigned
int
)
__raw_readb
(
addr
);
#else
return
(
unsigned
int
)
__indirect_readb
(
addr
);
#endif
...
...
@@ -381,7 +381,7 @@ static inline unsigned int ioread16(const void __iomem *addr)
return
(
unsigned
int
)
inw
(
port
&
PIO_MASK
);
else
#ifndef CONFIG_IXP4XX_INDIRECT_PCI
return
le16_to_cpu
(
__raw_readw
((
u32
)
port
));
return
le16_to_cpu
(
(
__force
__le16
)
__raw_readw
(
addr
));
#else
return
(
unsigned
int
)
__indirect_readw
(
addr
);
#endif
...
...
@@ -440,7 +440,7 @@ static inline void iowrite8(u8 value, void __iomem *addr)
outb
(
value
,
port
&
PIO_MASK
);
else
#ifndef CONFIG_IXP4XX_INDIRECT_PCI
__raw_writeb
(
value
,
port
);
__raw_writeb
(
value
,
addr
);
#else
__indirect_writeb
(
value
,
addr
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment