diff options
Diffstat (limited to 'include/linux/of_address.h')
| -rw-r--r-- | include/linux/of_address.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 01b925ad8d78..a1984dd037da 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #ifdef CONFIG_OF_ADDRESS | 7 | #ifdef CONFIG_OF_ADDRESS |
| 8 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); | 8 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); |
| 9 | extern bool of_can_translate_address(struct device_node *dev); | ||
| 9 | extern int of_address_to_resource(struct device_node *dev, int index, | 10 | extern int of_address_to_resource(struct device_node *dev, int index, |
| 10 | struct resource *r); | 11 | struct resource *r); |
| 11 | extern struct device_node *of_find_matching_node_by_address( | 12 | extern struct device_node *of_find_matching_node_by_address( |
| @@ -18,7 +19,7 @@ extern void __iomem *of_iomap(struct device_node *device, int index); | |||
| 18 | * the address space flags too. The PCI version uses a BAR number | 19 | * the address space flags too. The PCI version uses a BAR number |
| 19 | * instead of an absolute index | 20 | * instead of an absolute index |
| 20 | */ | 21 | */ |
| 21 | extern const u32 *of_get_address(struct device_node *dev, int index, | 22 | extern const __be32 *of_get_address(struct device_node *dev, int index, |
| 22 | u64 *size, unsigned int *flags); | 23 | u64 *size, unsigned int *flags); |
| 23 | 24 | ||
| 24 | #ifndef pci_address_to_pio | 25 | #ifndef pci_address_to_pio |
| @@ -43,7 +44,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index) | |||
| 43 | { | 44 | { |
| 44 | return NULL; | 45 | return NULL; |
| 45 | } | 46 | } |
| 46 | static inline const u32 *of_get_address(struct device_node *dev, int index, | 47 | static inline const __be32 *of_get_address(struct device_node *dev, int index, |
| 47 | u64 *size, unsigned int *flags) | 48 | u64 *size, unsigned int *flags) |
| 48 | { | 49 | { |
| 49 | return NULL; | 50 | return NULL; |
