]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Correct SPL use of MMC_QUIRKS
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:40:16 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 9 Feb 2023 17:50:50 +0000 (12:50 -0500)
This converts 1 usage of this option to the non-SPL form, since there is
no SPL_MMC_QUIRKS defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c

index afbc497b12cfe1ccaa6c8868c5010a2eec28d267..dde251c87bc768b2ca904f47a31f91fa675135ef 100644 (file)
@@ -247,7 +247,7 @@ static int mmc_send_cmd_retry(struct mmc *mmc, struct mmc_cmd *cmd,
 static int mmc_send_cmd_quirks(struct mmc *mmc, struct mmc_cmd *cmd,
                               struct mmc_data *data, u32 quirk, uint retries)
 {
-       if (CONFIG_IS_ENABLED(MMC_QUIRKS) && mmc->quirks & quirk)
+       if (IS_ENABLED(CONFIG_MMC_QUIRKS) && mmc->quirks & quirk)
                return mmc_send_cmd_retry(mmc, cmd, data, retries);
        else
                return mmc_send_cmd(mmc, cmd, data);