summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-13 22:17:08 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-16 08:36:18 +0100
commitb8eee7085c1ee2aabbdbbd81514ab447951f535b (patch)
treead8d539e6e62d3dcdff45e2497c6d28d96a55ad7 /arch
parent05509cd36275c3bedb2218130e24f8ccf5d0cf7c (diff)
downloadbarebox-b8eee7085c1ee2aabbdbbd81514ab447951f535b.tar.gz
barebox-b8eee7085c1ee2aabbdbbd81514ab447951f535b.tar.xz
PCI: Convert ->res_start() to return resource_size_t
On 64-bit machines int doesn't cover full address space, so convert .res_start to both accept resource_size_t as a parameter and return it as result. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mach-malta/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mach-malta/pci.c b/arch/mips/mach-malta/pci.c
index 47c0e228a7..4561123d22 100644
--- a/arch/mips/mach-malta/pci.c
+++ b/arch/mips/mach-malta/pci.c
@@ -131,7 +131,8 @@ static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn,
}
/* function returns memory address for begin of pci resource */
-static int gt64xxx_res_start(struct pci_bus *bus, resource_size_t res_addr)
+static resource_size_t gt64xxx_res_start(struct pci_bus *bus,
+ resource_size_t res_addr)
{
return KSEG0ADDR(res_addr);
}