Skip to content

Commit

Permalink
PCMCIA/i82092: remove #if 0 block
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Lukas Panzer <[email protected]>
Signed-off-by: Simon Geis <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Simon Geis authored and Dominik Brodowski committed Dec 16, 2019
1 parent 52739f0 commit 71705c6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions drivers/pcmcia/i82092.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71705c6

Please sign in to comment.