aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt2021-12-18 10:53:48 +0100
committerJaehoon Chung2022-01-12 09:56:40 +0900
commita15b2e6bcf5ae605073a7db54bfb68b07f736ba4 (patch)
tree3aacb14ec00d80bf48356a5f359d9a8be0bbccbb /include/mmc.h
parent66d0b7e1f2bdcfbb7a64a0ffc1fd63617b8dd995 (diff)
mmc: unconditionally define mmc_deinit()
We want to replace '#ifdef' by 'if (IS_ENABLED(CONFIG_...))' in our code. Therefore functions should be defined unconditionally even if they are not implemented. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Acked-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/mmc.h b/include/mmc.h
index b92e2553402..244d2dc5921 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -786,12 +786,7 @@ int mmc_init_device(int num);
int mmc_init(struct mmc *mmc);
int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error);
int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data);
-
-#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT) || \
- CONFIG_IS_ENABLED(MMC_HS200_SUPPORT) || \
- CONFIG_IS_ENABLED(MMC_HS400_SUPPORT)
int mmc_deinit(struct mmc *mmc);
-#endif
/**
* mmc_of_parse() - Parse the device tree to get the capabilities of the host