summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 2c7acbdda9..c00a866a48 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -143,7 +143,7 @@ struct pci_ops {
int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
/* return memory address for pci resource */
- int (*res_start)(struct pci_bus *bus, resource_size_t res_addr);
+ resource_size_t (*res_start)(struct pci_bus *bus, resource_size_t res_addr);
};
extern struct pci_ops *pci_ops;