From 263809b4a709ee897b1e10e3ad1592b7c00e32c1 Mon Sep 17 00:00:00 2001 From: Antony Arun T Date: Tue, 4 Jun 2019 12:13:30 +0530 Subject: [PATCH] ipq6018: moving __weak function definition to common file moving __weak function from board specific file to common file to avoid implicit declaration of function warning Change-Id: I60232c24eb3f7c4e16831de16452def3fe2671c3 Signed-off-by: Antony Arun T --- board/qca/arm/ipq40xx/ipq40xx.h | 4 ---- board/qca/arm/ipq806x/ipq806x.h | 4 ---- board/qca/arm/ipq807x/ipq807x.h | 4 ---- drivers/mmc/sdhci.c | 4 ++++ 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/board/qca/arm/ipq40xx/ipq40xx.h b/board/qca/arm/ipq40xx/ipq40xx.h index 17b2c40a8b..4562fde1a4 100644 --- a/board/qca/arm/ipq40xx/ipq40xx.h +++ b/board/qca/arm/ipq40xx/ipq40xx.h @@ -173,8 +173,4 @@ unsigned int get_board_index(unsigned int machid); void reset_crashdump(void); void ipq_fdt_fixup_socinfo(void *blob); -__weak void mmc_iopad_config(struct sdhci_host *host) -{ - return; -} #endif diff --git a/board/qca/arm/ipq806x/ipq806x.h b/board/qca/arm/ipq806x/ipq806x.h index b8dcfef5ae..c8c1dc2743 100644 --- a/board/qca/arm/ipq806x/ipq806x.h +++ b/board/qca/arm/ipq806x/ipq806x.h @@ -223,8 +223,4 @@ void ipq_fdt_fixup_socinfo(void *blob); void board_pci_init(int id); void board_pcie_clock_init(int id); -__weak void mmc_iopad_config(struct sdhci_host *host) -{ - return; -} #endif /* _IPQ806X_H_ */ diff --git a/board/qca/arm/ipq807x/ipq807x.h b/board/qca/arm/ipq807x/ipq807x.h index d2d5c0ff6d..89a67f6169 100644 --- a/board/qca/arm/ipq807x/ipq807x.h +++ b/board/qca/arm/ipq807x/ipq807x.h @@ -304,8 +304,4 @@ __weak int ipq_get_tz_version(char *version_name, int buf_size) return 1; } -__weak void mmc_iopad_config(struct sdhci_host *host) -{ - return; -} #endif /* _IPQ807X_H_ */ diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 129d96b99a..d51c36f146 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -600,6 +600,10 @@ static int sdhci_init(struct mmc *mmc) return 0; } +__weak void mmc_iopad_config(struct sdhci_host *host) +{ + return; +} static const struct mmc_ops sdhci_ops = { .send_cmd = sdhci_send_command,