commonlib/storage: fix int-to-pointer-cast error
When pulling in commonlib/storage/pci_sdhci.c into herobrine, am
seeing an "error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]", so fixing that.
BUG=b:254092907
BRANCH=None
TEST=emerge-herobrine coreboot
Make sure that we can build without errors
Change-Id: Ib1718f156708a619f7eeb181e19b1a8c620de1f8
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71828
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
e8d4baca77
commit
83ac83015a
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ struct sd_mmc_ctrlr *new_mem_sdhci_controller(void *ioaddr)
|
|||
|
||||
struct sd_mmc_ctrlr *new_pci_sdhci_controller(pci_devfn_t dev)
|
||||
{
|
||||
uint32_t addr;
|
||||
uintptr_t addr;
|
||||
|
||||
addr = pci_s_read_config32(dev, PCI_BASE_ADDRESS_0);
|
||||
if (addr == ((uint32_t)~0)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue