aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pcmcia/rsrc_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/rsrc_pci.c b/drivers/pcmcia/rsrc_pci.c
index 21c3683b1a53..1f67b3ba70fb 100644
--- a/drivers/pcmcia/rsrc_pci.c
+++ b/drivers/pcmcia/rsrc_pci.c
@@ -156,7 +156,7 @@ static struct resource *res_pci_find_mem(u_long base, u_long num,
156 156
157static int res_pci_init(struct pcmcia_socket *s) 157static int res_pci_init(struct pcmcia_socket *s)
158{ 158{
159 if (!s->cb_dev || (!s->features & SS_CAP_PAGE_REGS)) { 159 if (!s->cb_dev || !(s->features & SS_CAP_PAGE_REGS)) {
160 dev_err(&s->dev, "not supported by res_pci\n"); 160 dev_err(&s->dev, "not supported by res_pci\n");
161 return -EOPNOTSUPP; 161 return -EOPNOTSUPP;
162 } 162 }