Skip to content

Commit

Permalink
m68k: Add missing I/O macros {in,out}{w,l}_p() for !CONFIG_ISA
Browse files Browse the repository at this point in the history
On m68k, I/O macros like inb() outw() etc. are only defined to
something useful if CONFIG_ISA is set; dummies are in place if
not, but four macros were missing from the !CONFIG_ISA case.
Adding these makes some drivers, such as speakup, compile again.

Signed-off-by: Thorsten Glaser <tg@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Thorsten Glaser authored and Geert Uytterhoeven committed Oct 22, 2010
1 parent 2f81a18 commit 779b7e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/m68k/include/asm/io_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,13 @@ static inline void isa_delay(void)
#define outb(val,port) ((void)0)
#define outb_p(val,port) ((void)0)
#define inw(port) 0xffff
#define inw_p(port) 0xffff
#define outw(val,port) ((void)0)
#define outw_p(val,port) ((void)0)
#define inl(port) 0xffffffffUL
#define inl_p(port) 0xffffffffUL
#define outl(val,port) ((void)0)
#define outl_p(val,port) ((void)0)

#define insb(port,buf,nr) ((void)0)
#define outsb(port,buf,nr) ((void)0)
Expand Down

0 comments on commit 779b7e6

Please sign in to comment.