Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8397
b: refs/heads/master
c: 0e8bbf5
h: refs/heads/master
i:
  8395: 9f5c474
v: v3
  • Loading branch information
Michael Veeck authored and Linus Torvalds committed Sep 10, 2005
1 parent 609403e commit e9a8283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c5719c43d34073f6b4b0a2dd99f5317a5f63abd
refs/heads/master: 0e8bbf59bd1ff78ad7e6c7afe6acef91372914e1
8 changes: 2 additions & 6 deletions trunk/arch/sh/boards/bigsur/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ static u8 bigsur_iomap_lo_shift[BIGSUR_IOMAP_LO_NMAP];
static u32 bigsur_iomap_hi[BIGSUR_IOMAP_HI_NMAP];
static u8 bigsur_iomap_hi_shift[BIGSUR_IOMAP_HI_NMAP];

#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif

void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift)
{
u32 port, endport = baseport + nports;
Expand All @@ -57,7 +53,7 @@ void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift)
addr += (1<<(BIGSUR_IOMAP_LO_SHIFT));
}

for (port = MAX(baseport, BIGSUR_IOMAP_LO_THRESH) ;
for (port = max_t(u32, baseport, BIGSUR_IOMAP_LO_THRESH);
port < endport && port < BIGSUR_IOMAP_HI_THRESH ;
port += (1<<BIGSUR_IOMAP_HI_SHIFT)) {
pr_debug(" maphi[0x%x] = 0x%08x\n", port, addr);
Expand All @@ -80,7 +76,7 @@ void bigsur_port_unmap(u32 baseport, u32 nports)
bigsur_iomap_lo[port>>BIGSUR_IOMAP_LO_SHIFT] = 0;
}

for (port = MAX(baseport, BIGSUR_IOMAP_LO_THRESH) ;
for (port = max_t(u32, baseport, BIGSUR_IOMAP_LO_THRESH);
port < endport && port < BIGSUR_IOMAP_HI_THRESH ;
port += (1<<BIGSUR_IOMAP_HI_SHIFT)) {
bigsur_iomap_hi[port>>BIGSUR_IOMAP_HI_SHIFT] = 0;
Expand Down

0 comments on commit e9a8283

Please sign in to comment.