summaryrefslogtreecommitdiff
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorSimon Geis <simon.geis@fau.de>2019-12-13 14:53:14 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2019-12-16 11:49:54 +0100
commit71705c611263cad99edf85a5ea021e098cac032b (patch)
tree55f3f61ef83425d994824bc08cd8fcfb10643e0f /drivers/pcmcia
parent52739f063f7e991326eecfffa2538e1f425d2580 (diff)
PCMCIA/i82092: remove #if 0 block
Remove the unused function indirect_read16, which is similar to indirect_read with the exception that it reads 16 instead of 8 bit. Co-developed-by: Lukas Panzer <lukas.panzer@fau.de> Signed-off-by: Lukas Panzer <lukas.panzer@fau.de> Signed-off-by: Simon Geis <simon.geis@fau.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/i82092.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c
index 2189f8b0ded4..85887d885b5f 100644
--- a/drivers/pcmcia/i82092.c
+++ b/drivers/pcmcia/i82092.c
@@ -200,26 +200,6 @@ static unsigned char indirect_read(int socket, unsigned short reg)
return val;
}
-#if 0
-static unsigned short indirect_read16(int socket, unsigned short reg)
-{
- unsigned short int port;
- unsigned short tmp;
- unsigned long flags;
-
- spin_lock_irqsave(&port_lock, flags);
- reg = reg + socket * 0x40;
- port = sockets[socket].io_base;
- outb(reg, port);
- tmp = inb(port+1);
- reg++;
- outb(reg, port);
- tmp = tmp | (inb(port+1)<<8);
- spin_unlock_irqrestore(&port_lock, flags);
- return tmp;
-}
-#endif
-
static void indirect_write(int socket, unsigned short reg, unsigned char value)
{
unsigned short int port;