Skip to content

Commit 71705c6

Browse files
Simon GeisDominik Brodowski
authored andcommitted
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 <[email protected]> Signed-off-by: Lukas Panzer <[email protected]> Signed-off-by: Simon Geis <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
1 parent 52739f0 commit 71705c6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

drivers/pcmcia/i82092.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -200,26 +200,6 @@ static unsigned char indirect_read(int socket, unsigned short reg)
200200
return val;
201201
}
202202

203-
#if 0
204-
static unsigned short indirect_read16(int socket, unsigned short reg)
205-
{
206-
unsigned short int port;
207-
unsigned short tmp;
208-
unsigned long flags;
209-
210-
spin_lock_irqsave(&port_lock, flags);
211-
reg = reg + socket * 0x40;
212-
port = sockets[socket].io_base;
213-
outb(reg, port);
214-
tmp = inb(port+1);
215-
reg++;
216-
outb(reg, port);
217-
tmp = tmp | (inb(port+1)<<8);
218-
spin_unlock_irqrestore(&port_lock, flags);
219-
return tmp;
220-
}
221-
#endif
222-
223203
static void indirect_write(int socket, unsigned short reg, unsigned char value)
224204
{
225205
unsigned short int port;

0 commit comments

Comments
 (0)