Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0000920 authored by Magnus Damm's avatar Magnus Damm Committed by Jeff Garzik
Browse files

smc911x: remove unused 8-bit I/O operations



Remove unused SMC_inb() and SMC_outb() functions.

Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 573bf470
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -50,10 +50,8 @@
 */
 */


#if	SMC_USE_16BIT
#if	SMC_USE_16BIT
#define SMC_inb(a, r)			 readb((a) + (r))
#define SMC_inw(a, r)			 readw((a) + (r))
#define SMC_inw(a, r)			 readw((a) + (r))
#define SMC_inl(a, r)			 ((SMC_inw(a, r) & 0xFFFF)+(SMC_inw(a+2, r)<<16))
#define SMC_inl(a, r)			 ((SMC_inw(a, r) & 0xFFFF)+(SMC_inw(a+2, r)<<16))
#define SMC_outb(v, a, r)		 writeb(v, (a) + (r))
#define SMC_outw(v, a, r)		 writew(v, (a) + (r))
#define SMC_outw(v, a, r)		 writew(v, (a) + (r))
#define SMC_outl(v, a, r) 			 \
#define SMC_outl(v, a, r) 			 \
	do{					 \
	do{					 \
@@ -64,10 +62,8 @@
#define SMC_outsl(a, r, p, l)	 writesw((short*)((a) + (r)), p, l*2)
#define SMC_outsl(a, r, p, l)	 writesw((short*)((a) + (r)), p, l*2)


#elif	SMC_USE_32BIT
#elif	SMC_USE_32BIT
#define SMC_inb(a, r)		 readb((a) + (r))
#define SMC_inw(a, r)		 readw((a) + (r))
#define SMC_inw(a, r)		 readw((a) + (r))
#define SMC_inl(a, r)		 readl((a) + (r))
#define SMC_inl(a, r)		 readl((a) + (r))
#define SMC_outb(v, a, r)	 writeb(v, (a) + (r))
#define SMC_outl(v, a, r)	 writel(v, (a) + (r))
#define SMC_outl(v, a, r)	 writel(v, (a) + (r))
#define SMC_insl(a, r, p, l)	 readsl((int*)((a) + (r)), p, l)
#define SMC_insl(a, r, p, l)	 readsl((int*)((a) + (r)), p, l)
#define SMC_outsl(a, r, p, l)	 writesl((int*)((a) + (r)), p, l)
#define SMC_outsl(a, r, p, l)	 writesl((int*)((a) + (r)), p, l)