Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-02-10 03:05:23 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2005-02-10 03:05:23 -0800
commit191e38fc8b952789f4cbf62a7fc603b98ab99dbd (patch)
tree3d8ab18fa268890df160908d38f93bff13538863
parentb4fcc3bf9bcd0d0fb0ea2af2b7886499b8dc8582 (diff)
[SPARC64]: Fix prototype of check_signature() - it already gets a pointer
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/asm-sparc64/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sparc64/io.h b/include/asm-sparc64/io.h
index 30276548912f..6661a23b6883 100644
--- a/include/asm-sparc64/io.h
+++ b/include/asm-sparc64/io.h
@@ -417,13 +417,13 @@ _memcpy_toio(volatile void __iomem *dst, const void *src, __kernel_size_t n)
#define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz)
-static inline int check_signature(unsigned long io_addr,
+static inline int check_signature(void __iomem *io_addr,
const unsigned char *signature,
int length)
{
int retval = 0;
do {
- if (readb((void __iomem *)io_addr) != *signature++)
+ if (readb(io_addr) != *signature++)
goto out;
io_addr++;
} while (--length);