diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 424e576f3acb..6bf8b2c06c7d 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -975,7 +975,7 @@ static irqreturn_t yenta_probe_handler(int irq, void *dev_id) | |||
975 | /* probes the PCI interrupt, use only on override functions */ | 975 | /* probes the PCI interrupt, use only on override functions */ |
976 | static int yenta_probe_cb_irq(struct yenta_socket *socket) | 976 | static int yenta_probe_cb_irq(struct yenta_socket *socket) |
977 | { | 977 | { |
978 | u8 reg; | 978 | u8 reg = 0; |
979 | 979 | ||
980 | if (!socket->cb_irq) | 980 | if (!socket->cb_irq) |
981 | return -1; | 981 | return -1; |
@@ -989,7 +989,8 @@ static int yenta_probe_cb_irq(struct yenta_socket *socket) | |||
989 | } | 989 | } |
990 | 990 | ||
991 | /* generate interrupt, wait */ | 991 | /* generate interrupt, wait */ |
992 | reg = exca_readb(socket, I365_CSCINT); | 992 | if (!socket->dev->irq) |
993 | reg = exca_readb(socket, I365_CSCINT); | ||
993 | exca_writeb(socket, I365_CSCINT, reg | I365_CSC_STSCHG); | 994 | exca_writeb(socket, I365_CSCINT, reg | I365_CSC_STSCHG); |
994 | cb_writel(socket, CB_SOCKET_EVENT, -1); | 995 | cb_writel(socket, CB_SOCKET_EVENT, -1); |
995 | cb_writel(socket, CB_SOCKET_MASK, CB_CSTSMASK); | 996 | cb_writel(socket, CB_SOCKET_MASK, CB_CSTSMASK); |