From fbf515b81569585c8f404bc12fbcc59e44fdcd85 Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Mon, 28 Jul 2014 21:43:30 +0100 Subject: staging: vt6655: dead code remove undefined macro IO_MAP This device is always memory mapped Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/upc.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'drivers/staging/vt6655/upc.h') diff --git a/drivers/staging/vt6655/upc.h b/drivers/staging/vt6655/upc.h index af12a86..e262f1b0 100644 --- a/drivers/staging/vt6655/upc.h +++ b/drivers/staging/vt6655/upc.h @@ -35,38 +35,6 @@ /*--------------------- Export Definitions -------------------------*/ // -// For IO mapped -// - -#ifdef IO_MAP - -#define VNSvInPortB(dwIOAddress, pbyData) \ -do { \ - *(pbyData) = inb(dwIOAddress); \ -} while (0) - -#define VNSvInPortW(dwIOAddress, pwData) \ -do { \ - *(pwData) = inw(dwIOAddress); \ -} while (0) - -#define VNSvInPortD(dwIOAddress, pdwData) \ -do { \ - *(pdwData) = inl(dwIOAddress); \ -} while (0) - -#define VNSvOutPortB(dwIOAddress, byData) \ - outb(byData, dwIOAddress) - -#define VNSvOutPortW(dwIOAddress, wData) \ - outw(wData, dwIOAddress) - -#define VNSvOutPortD(dwIOAddress, dwData) \ - outl(dwData, dwIOAddress) - -#else - -// // For memory mapped IO // @@ -100,8 +68,6 @@ do { \ writel((unsigned long)dwData, dwIOAddress); \ } while (0) -#endif - // // ALWAYS IO-Mapped IO when in 16-bit/32-bit environment // -- cgit v1.1