diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 528524a22c80..418813681b35 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -272,7 +272,7 @@ static void sdio_release_func(struct device *dev) * If this device is embedded then we never allocated * cis tables for this func */ - if (!func->card->host->embedded_sdio_data.funcs) + if (!(func->card->quirks & MMC_QUIRK_NONSTD_SDIO)) #endif sdio_free_func_cis(func);