Commit 7830551e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] m68k: minmax-removal arch/m68k/kernel/bios32.c

M68k PCI: Removes unnecessary min/max macros and change calls to use kernel.h
macros instead.
Signed-off-by: default avatarMichael Veeck <michael.veeck@gmx.net>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c7389b13
......@@ -46,8 +46,6 @@
#define ALIGN(val,align) (((val) + ((align) - 1)) & ~((align) - 1))
#define MAX(val1, val2) (((val1) > (val2)) ? val1 : val2)
/*
* Offsets relative to the I/O and memory base addresses from where resources
* are allocated.
......@@ -171,7 +169,7 @@ static void __init layout_dev(struct pci_dev *dev)
* Align to multiple of size of minimum base.
*/
alignto = MAX(0x040, size) ;
alignto = max_t(unsigned int, 0x040, size);
base = ALIGN(io_base, alignto);
io_base = base + size;
pci_write_config_dword(dev, reg, base | PCI_BASE_ADDRESS_SPACE_IO);
......@@ -214,7 +212,7 @@ static void __init layout_dev(struct pci_dev *dev)
* Align to multiple of size of minimum base.
*/
alignto = MAX(0x1000, size) ;
alignto = max_t(unsigned int, 0x1000, size);
base = ALIGN(mem_base, alignto);
mem_base = base + size;
pci_write_config_dword(dev, reg, base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment