mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
mmc: pci: Drop the superfluous cast
dm_pci_map_bar() return a value of (void *) already, hence no need to cast it again before assigning to host->ioaddr. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
9b8ebd3aec
commit
c27c8102e1
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ static int pci_mmc_probe(struct udevice *dev)
|
|||
desc = mmc_get_blk_desc(&plat->mmc);
|
||||
desc->removable = !(plat->cfg.host_caps & MMC_CAP_NONREMOVABLE);
|
||||
|
||||
host->ioaddr = (void *)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
|
||||
PCI_REGION_MEM);
|
||||
host->ioaddr = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0,
|
||||
PCI_REGION_TYPE, PCI_REGION_MEM);
|
||||
host->name = dev->name;
|
||||
host->cd_gpio = priv->cd_gpio;
|
||||
host->mmc = &plat->mmc;
|
||||
|
|
Loading…
Reference in a new issue