]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pnp/card.c
[IB] mthca: Better limit checking and reporting
[linux-2.6-omap-h63xx.git] / drivers / pnp / card.c
index add12f7c489a9666b53983c13077505465c33bd4..e95ed67d4f050afddf5918d34628e4586ba70951 100644 (file)
@@ -8,13 +8,6 @@
 #include <linux/config.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-
-#ifdef CONFIG_PNP_DEBUG
-       #define DEBUG
-#else
-       #undef DEBUG
-#endif
-
 #include <linux/pnp.h>
 #include "base.h"
 
@@ -312,6 +305,8 @@ found:
        if (drv->link.driver.probe) {
                if (drv->link.driver.probe(&dev->dev)) {
                        dev->dev.driver = NULL;
+                       dev->card_link = NULL;
+                       up_write(&dev->dev.bus->subsys.rwsem);
                        return NULL;
                }
        }