mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
mmc: sdhci: remove unneeded casts
host->mmc is already (struct mmc *). memalign() returns an opaque pointer, so there is no need for casting. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
committed by
Peng Fan
parent
a2b0221c9c
commit
fdd84c8be4
@@ -522,7 +522,7 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
|
|||||||
|
|
||||||
void sdhci_set_uhs_timing(struct sdhci_host *host)
|
void sdhci_set_uhs_timing(struct sdhci_host *host)
|
||||||
{
|
{
|
||||||
struct mmc *mmc = (struct mmc *)host->mmc;
|
struct mmc *mmc = host->mmc;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
reg = sdhci_readw(host, SDHCI_HOST_CONTROL2);
|
reg = sdhci_readw(host, SDHCI_HOST_CONTROL2);
|
||||||
@@ -735,8 +735,7 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
|
|||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
host->adma_desc_table = (struct sdhci_adma_desc *)
|
host->adma_desc_table = memalign(ARCH_DMA_MINALIGN, ADMA_TABLE_SZ);
|
||||||
memalign(ARCH_DMA_MINALIGN, ADMA_TABLE_SZ);
|
|
||||||
|
|
||||||
host->adma_addr = (dma_addr_t)host->adma_desc_table;
|
host->adma_addr = (dma_addr_t)host->adma_desc_table;
|
||||||
#ifdef CONFIG_DMA_ADDR_T_64BIT
|
#ifdef CONFIG_DMA_ADDR_T_64BIT
|
||||||
|
Reference in New Issue
Block a user