]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/core/sdio_bus.c
sdio: link unknown CIS tuples to the sdio_func structure
[linux-2.6-omap-h63xx.git] / drivers / mmc / core / sdio_bus.c
index fa488cea85944503fdc7198a447f2c78cb86aa42..78e0381f55ac9492c934e6169946a13cf14fef8a 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/mmc/card.h>
 #include <linux/mmc/sdio_func.h>
 
+#include "sdio_cis.h"
 #include "sdio_bus.h"
 
 #define dev_to_sdio_func(d)    container_of(d, struct sdio_func, dev)
@@ -94,6 +95,8 @@ static void sdio_release_func(struct device *dev)
 {
        struct sdio_func *func = dev_to_sdio_func(dev);
 
+       sdio_free_cis(func);
+
        kfree(func);
 }