src: Use PCI_BASE_ADDRESS_* macros instead of magic numbers
Change-Id: Id3390c5ac6a9517ffc2d202f41802e6f4d2e314c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44371 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
a3022056a2
commit
a4dd33cc8b
@@ -12,7 +12,7 @@ static void oxford_oxpcie_enable(struct device *dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "Initializing Oxford OXPCIe952\n");
|
||||
|
||||
struct resource *res = find_resource(dev, 0x10);
|
||||
struct resource *res = find_resource(dev, PCI_BASE_ADDRESS_0);
|
||||
if (!res) {
|
||||
printk(BIOS_WARNING, "OXPCIe952: No UART resource found.\n");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user