]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/core/sdio_bus.c
sdio: core support for SDIO function interrupt
[linux-2.6-omap-h63xx.git] / drivers / mmc / core / sdio_bus.c
index 129f0719c391de28b1078d8726faeb73fa25c3da..2407244549145190623f3613ed0c2686e34dc59a 100644 (file)
@@ -143,6 +143,14 @@ static int sdio_bus_remove(struct device *dev)
 
        drv->remove(func);
 
+       if (func->irq_handler) {
+               printk(KERN_WARNING "WARNING: driver %s did not remove "
+                       "its interrupt handler!\n", drv->name);
+               sdio_claim_host(func);
+               sdio_release_irq(func);
+               sdio_release_host(func);
+       }
+
        return 0;
 }