device/pci_rom: use ALIGN_UP instead of ALIGN for better readability

Change-Id: Icb0b3fd22fa9b6ea73b7770079f81335e40fd0d3
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33633
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Held 2019-06-20 14:35:44 +02:00
parent 8d2ec86c5e
commit d5a11ed6c8
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ pci_rom_write_acpi_tables(struct device *device, unsigned long current,
/* AMD/ATI uses VFCT */ /* AMD/ATI uses VFCT */
if (device->vendor == PCI_VENDOR_ID_ATI) { if (device->vendor == PCI_VENDOR_ID_ATI) {
current = ALIGN(current, 8); current = ALIGN_UP(current, 8);
printk(BIOS_DEBUG, "ACPI: * VFCT at %lx\n", current); printk(BIOS_DEBUG, "ACPI: * VFCT at %lx\n", current);
vfct = (struct acpi_vfct *)current; vfct = (struct acpi_vfct *)current;
acpi_create_vfct(device, vfct, pci_rom_acpi_fill_vfct); acpi_create_vfct(device, vfct, pci_rom_acpi_fill_vfct);