X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Foss%2Fnm256.h;h=eae7d99d6826300d94cd82d5d1850654c196d5b9;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=583004ef0aa1737f70946a9acbd60c199ba6c435;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/oss/nm256.h b/sound/oss/nm256.h index 583004ef0..eae7d99d6 100644 --- a/sound/oss/nm256.h +++ b/sound/oss/nm256.h @@ -60,7 +60,7 @@ struct nm256_info /* Physical address of the port. */ u32 physaddr; /* Our mapped-in pointer. */ - char *ptr; + char __iomem *ptr; /* PTR's offset within the physical port. */ u32 start_offset; /* And the offset of the end of the buffer. */ @@ -233,14 +233,14 @@ extern int nm256_debug; static inline int nm256_writePort##X (struct nm256_info *card,\ int port, int offset, int value)\ {\ - u##X *addr;\ + u##X __iomem *addr;\ \ if (nm256_debug > 1)\ printk (KERN_DEBUG "Writing 0x%x to %d:0x%x\n", value, port, offset);\ \ NM_FIX_PORT;\ \ - addr = (u##X *)(card->port[port - 1].ptr + offset);\ + addr = (u##X __iomem *)(card->port[port - 1].ptr + offset);\ func (value, addr);\ return 0;\ } @@ -253,11 +253,11 @@ DEFwritePortX (32, writel) static inline u##X nm256_readPort##X (struct nm256_info *card,\ int port, int offset)\ {\ - u##X *addr;\ + u##X __iomem *addr;\ \ NM_FIX_PORT\ \ - addr = (u##X *)(card->port[port - 1].ptr + offset);\ + addr = (u##X __iomem *)(card->port[port - 1].ptr + offset);\ return func(addr);\ }