diff options
Diffstat (limited to 'drivers/pcmcia/yenta_socket.c')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 42f6763db40..51ee68dbc61 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -329,8 +329,8 @@ static int yenta_set_socket(struct pcmcia_socket *sock, socket_state_t *state) | |||
329 | /* ISA interrupt control? */ | 329 | /* ISA interrupt control? */ |
330 | intr = exca_readb(socket, I365_INTCTL); | 330 | intr = exca_readb(socket, I365_INTCTL); |
331 | intr = (intr & ~0xf); | 331 | intr = (intr & ~0xf); |
332 | if (!socket->cb_irq) { | 332 | if (!socket->dev->irq) { |
333 | intr |= state->io_irq; | 333 | intr |= socket->cb_irq ? socket->cb_irq : state->io_irq; |
334 | bridge |= CB_BRIDGE_INTR; | 334 | bridge |= CB_BRIDGE_INTR; |
335 | } | 335 | } |
336 | exca_writeb(socket, I365_INTCTL, intr); | 336 | exca_writeb(socket, I365_INTCTL, intr); |
@@ -340,7 +340,7 @@ static int yenta_set_socket(struct pcmcia_socket *sock, socket_state_t *state) | |||
340 | reg = exca_readb(socket, I365_INTCTL) & (I365_RING_ENA | I365_INTR_ENA); | 340 | reg = exca_readb(socket, I365_INTCTL) & (I365_RING_ENA | I365_INTR_ENA); |
341 | reg |= (state->flags & SS_RESET) ? 0 : I365_PC_RESET; | 341 | reg |= (state->flags & SS_RESET) ? 0 : I365_PC_RESET; |
342 | reg |= (state->flags & SS_IOCARD) ? I365_PC_IOCARD : 0; | 342 | reg |= (state->flags & SS_IOCARD) ? I365_PC_IOCARD : 0; |
343 | if (state->io_irq != socket->cb_irq) { | 343 | if (state->io_irq != socket->dev->irq) { |
344 | reg |= state->io_irq; | 344 | reg |= state->io_irq; |
345 | bridge |= CB_BRIDGE_INTR; | 345 | bridge |= CB_BRIDGE_INTR; |
346 | } | 346 | } |