]> git.ipfire.org Git - thirdparty/linux.git/commit
parisc/PCI: Clean up align handling
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 24 Mar 2026 16:56:30 +0000 (18:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 27 Mar 2026 15:19:08 +0000 (10:19 -0500)
commit38ec53e16fe51c427bd1c7ed50be2bcc3db4f01a
tree41cc8fd89c4aa997165af5e77d80d70a36458661
parent3fa40d305ba185882479ee90ff71b9034622bf85
parisc/PCI: Clean up align handling

Caller of pcibios_align_resource() (__find_resource_space()) already aligns
the start address by 'alignment' so aligning is only necessary if align >
alignment.

Change also to use ALIGN() instead of open-coding.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260324165633.4583-8-ilpo.jarvinen@linux.intel.com
arch/parisc/kernel/pci.c