From: Heinrich Schuchardt Date: Sat, 18 Dec 2021 09:53:48 +0000 (+0100) Subject: mmc: unconditionally define mmc_deinit() X-Git-Tag: v2022.07~236^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a15b2e6bcf5ae605073a7db54bfb68b07f736ba4;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Peng Fan Reviewed-by: Jaehoon Chung --- diff --git a/include/mmc.h b/include/mmc.h index b92e255..244d2dc 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