mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
drivers: mmc: iproc_sdhci: fix compilation warning
set_ios_post return type changed from void to int, correcting the same to fix compilation warning. Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
This commit is contained in:
parent
2bb02b1a81
commit
7a65b8b6bb
1 changed files with 3 additions and 1 deletions
|
@ -136,7 +136,7 @@ static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg)
|
|||
}
|
||||
#endif
|
||||
|
||||
static void sdhci_iproc_set_ios_post(struct sdhci_host *host)
|
||||
static int sdhci_iproc_set_ios_post(struct sdhci_host *host)
|
||||
{
|
||||
u32 ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
|
||||
|
||||
|
@ -147,6 +147,8 @@ static void sdhci_iproc_set_ios_post(struct sdhci_host *host)
|
|||
ctrl |= UHS_DDR50_BUS_SPEED;
|
||||
|
||||
sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct sdhci_ops sdhci_platform_ops = {
|
||||
|
|
Loading…
Add table
Reference in a new issue