]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: pci: Drop the superfluous cast
authorBin Meng <bmeng@tinylab.org>
Wed, 11 Oct 2023 11:00:52 +0000 (19:00 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 1 Nov 2023 00:58:57 +0000 (09:58 +0900)
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>
drivers/mmc/pci_mmc.c

index 9fb7044029301fe78610a9993b8ff150f27fb4fb..4d163ccba04192550405475af25bc4b5c095a30e 100644 (file)
@@ -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;