aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_address.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-10-30 03:20:56 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-10-30 03:20:56 -0400
commit53279f36dccffc26ff536003fd6bb97cc21c3b82 (patch)
tree9d16e497c0e4158c7c054c479bd0e9ff0388d7bb /include/linux/of_address.h
parenta6e8c0a25377e27958b11b20e1927885ae7c9857 (diff)
parent8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff)
Merge tag 'v3.7-rc3' into next to sync up with recent USB and MFD changes
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r--include/linux/of_address.h5
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
8extern u64 of_translate_address(struct device_node *np, const __be32 *addr); 8extern u64 of_translate_address(struct device_node *np, const __be32 *addr);
9extern bool of_can_translate_address(struct device_node *dev);
9extern int of_address_to_resource(struct device_node *dev, int index, 10extern int of_address_to_resource(struct device_node *dev, int index,
10 struct resource *r); 11 struct resource *r);
11extern struct device_node *of_find_matching_node_by_address( 12extern 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 */
21extern const u32 *of_get_address(struct device_node *dev, int index, 22extern 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}
46static inline const u32 *of_get_address(struct device_node *dev, int index, 47static 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;