diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-13 09:04:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-13 09:04:00 -0700 |
commit | 68394bfbe507f266bb13d8152976218a97f51b45 (patch) | |
tree | 4cd4035d6c95a86ac4cd15f6b52a965e62458b2c /arch/sh/include/asm/io_noioport.h | |
parent | e7654c1e49b8fd79baa8616f601c620013a027c1 (diff) | |
parent | 44033109e99cf584d6285226ed521098f5ef7250 (diff) |
Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh
Pull SuperH fixes from Paul Mundt.
* tag 'sh-for-linus' of git://github.com/pmundt/linux-sh:
SH: Convert out[bwl] macros to inline functions
sh: Fix up se7721 GPIOLIB=y build warnings.
Diffstat (limited to 'arch/sh/include/asm/io_noioport.h')
-rw-r--r-- | arch/sh/include/asm/io_noioport.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/sh/include/asm/io_noioport.h b/arch/sh/include/asm/io_noioport.h index e136d28d1d2e..4d48f1436a63 100644 --- a/arch/sh/include/asm/io_noioport.h +++ b/arch/sh/include/asm/io_noioport.h @@ -19,9 +19,20 @@ static inline u32 inl(unsigned long addr) return -1; } -#define outb(x, y) BUG() -#define outw(x, y) BUG() -#define outl(x, y) BUG() +static inline void outb(unsigned char x, unsigned long port) +{ + BUG(); +} + +static inline void outw(unsigned short x, unsigned long port) +{ + BUG(); +} + +static inline void outl(unsigned int x, unsigned long port) +{ + BUG(); +} #define inb_p(addr) inb(addr) #define inw_p(addr) inw(addr) |