]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pcmcia/pcmcia_resource.c
pcmcia: check for pointer instead of pointer address
[linux-2.6-omap-h63xx.git] / drivers / pcmcia / pcmcia_resource.c
index 1d128fbd1a92d9f4dcdaed4a3065c3365b5fce68..c8f77b889d42ffe6887cbe812a55e0482592eaeb 100644 (file)
@@ -966,7 +966,7 @@ void pcmcia_disable_device(struct pcmcia_device *p_dev) {
        pcmcia_release_configuration(p_dev);
        pcmcia_release_io(p_dev, &p_dev->io);
        pcmcia_release_irq(p_dev, &p_dev->irq);
-       if (&p_dev->win)
+       if (p_dev->win)
                pcmcia_release_window(p_dev->win);
 }
 EXPORT_SYMBOL(pcmcia_disable_device);