mmc: card: Fix build error without AMLOGIC_MMC 63/293663/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 1 Jun 2023 02:14:44 +0000 (11:14 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 1 Jun 2023 02:14:47 +0000 (11:14 +0900)
Fix build error without CONFIG_AMLOGIC_MMC.

Change-Id: I3a76432c4441b50e372c4393030f191a9cec9b4d
Fixes: a0ed97ec7c26 ("emmc: ffu: add emmc ffu update support [1/1]")
Fixes: 4ee9cb927f1c ("sdio: optimize sdio suspend/resume [1/1]")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/mmc/card/block.c
drivers/mmc/core/sdio.c

index f1dba1d040f50b83cf59aa86758d7cd54a0a2f02..fba8242a29c79ffa2e039a062fd3f1bf00ffa235 100644 (file)
@@ -799,10 +799,10 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md,
        struct mmc_data data = {0};
 #ifdef CONFIG_AMLOGIC_MMC
        struct mmc_command sbc = {0};
+       struct scatterlist *ffu_sg = NULL;
 #endif
        struct mmc_request mrq = {NULL};
        struct scatterlist sg;
-       struct scatterlist *ffu_sg = NULL;
        int err;
        int is_rpmb = false;
        u32 status = 0;
index b4fe12f92b4a3eb95ddf9fef9acb775fe0984b4d..2e3f4e9db66340d8647e7a9f0b3be65e2354f72f 100644 (file)
@@ -919,8 +919,10 @@ static int mmc_sdio_suspend(struct mmc_host *host)
 {
        mmc_claim_host(host);
 
+#ifdef CONFIG_AMLOGIC_MMC
        if (host->wifi_down_f)
                host->pm_flags |= MMC_PM_KEEP_POWER;
+#endif
 
        if (mmc_card_keep_power(host) && mmc_card_wake_sdio_irq(host))
                sdio_disable_wide(host->card);