diff options
| -rw-r--r-- | arch/sh/include/asm/io_noioport.h | 17 | ||||
| -rw-r--r-- | arch/sh/kernel/cpu/sh3/serial-sh7720.c | 2 |
2 files changed, 15 insertions, 4 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) | |||
| 19 | return -1; | 19 | return -1; |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | #define outb(x, y) BUG() | 22 | static inline void outb(unsigned char x, unsigned long port) |
| 23 | #define outw(x, y) BUG() | 23 | { |
| 24 | #define outl(x, y) BUG() | 24 | BUG(); |
| 25 | } | ||
| 26 | |||
| 27 | static inline void outw(unsigned short x, unsigned long port) | ||
| 28 | { | ||
| 29 | BUG(); | ||
| 30 | } | ||
| 31 | |||
| 32 | static inline void outl(unsigned int x, unsigned long port) | ||
| 33 | { | ||
| 34 | BUG(); | ||
| 35 | } | ||
| 25 | 36 | ||
| 26 | #define inb_p(addr) inb(addr) | 37 | #define inb_p(addr) inb(addr) |
| 27 | #define inw_p(addr) inw(addr) | 38 | #define inw_p(addr) inw(addr) |
diff --git a/arch/sh/kernel/cpu/sh3/serial-sh7720.c b/arch/sh/kernel/cpu/sh3/serial-sh7720.c index 8832c526cdf9..c4a0336660dd 100644 --- a/arch/sh/kernel/cpu/sh3/serial-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/serial-sh7720.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | #include <linux/serial_core.h> | 2 | #include <linux/serial_core.h> |
| 3 | #include <linux/io.h> | 3 | #include <linux/io.h> |
| 4 | #include <cpu/serial.h> | 4 | #include <cpu/serial.h> |
| 5 | #include <asm/gpio.h> | 5 | #include <cpu/gpio.h> |
| 6 | 6 | ||
| 7 | static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag) | 7 | static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag) |
| 8 | { | 8 | { |
