Skip to content

Commit

Permalink
pci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzhuzhus committed Sep 14, 2024
1 parent 61b9fd6 commit 49b6f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ rt_ubase_t rt_pci_get_addr(struct rt_pci_device *pdev, rt_ubase_t flags)
for (int i = 0; i < RT_PCI_BAR_NR_MAX; i++)
{
if (pdev->resource[i].flags == flags)
return pdev->resource[i].base;
return (rt_ubase_t)rt_ioremap((void *)pdev->resource[i].base, pdev->resource[i].size);
}
return 0;
}
Expand Down

0 comments on commit 49b6f2d

Please sign in to comment.