diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-18 14:47:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-18 14:47:53 -0400 |
commit | bab58350e565756df9e45daafe8301a309b35e7e (patch) | |
tree | 16dd66427112b89b2158ad3ca50a29043fb72fdf /include | |
parent | ec351832bc83daf5985c4c3cbb72d743a2408a73 (diff) | |
parent | 205a8eb7ce713c7f1722297dd97d19dcea6f266c (diff) |
Merge tag 'dt-fixes-for-3.7' of git://sources.calxeda.com/kernel/linux
Pull DeviceTree fixes from Rob Herring:
"A handful of fixes:
- a fix for dtc from upstream
- sparse fixes in DeviceTree code
- stub of_get_child_by_name for !OF builds"
* tag 'dt-fixes-for-3.7' of git://sources.calxeda.com/kernel/linux:
dtc: fix for_each_*() to skip first object if deleted
of/platform: sparse fix
of/irq: sparse fixes
of/address: sparse fixes
of: add stub of_get_child_by_name for non-OF builds
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of.h | 7 | ||||
-rw-r--r-- | include/linux/of_address.h | 4 | ||||
-rw-r--r-- | include/linux/of_irq.h | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 72843b72a2b2..b4e50d56fc74 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -331,6 +331,13 @@ static inline bool of_have_populated_dt(void) | |||
331 | #define for_each_child_of_node(parent, child) \ | 331 | #define for_each_child_of_node(parent, child) \ |
332 | while (0) | 332 | while (0) |
333 | 333 | ||
334 | static inline struct device_node *of_get_child_by_name( | ||
335 | const struct device_node *node, | ||
336 | const char *name) | ||
337 | { | ||
338 | return NULL; | ||
339 | } | ||
340 | |||
334 | static inline int of_get_child_count(const struct device_node *np) | 341 | static inline int of_get_child_count(const struct device_node *np) |
335 | { | 342 | { |
336 | return 0; | 343 | return 0; |
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index c3cdc1025c30..a1984dd037da 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h | |||
@@ -19,7 +19,7 @@ extern void __iomem *of_iomap(struct device_node *device, int index); | |||
19 | * 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 |
20 | * instead of an absolute index | 20 | * instead of an absolute index |
21 | */ | 21 | */ |
22 | 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, |
23 | u64 *size, unsigned int *flags); | 23 | u64 *size, unsigned int *flags); |
24 | 24 | ||
25 | #ifndef pci_address_to_pio | 25 | #ifndef pci_address_to_pio |
@@ -44,7 +44,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index) | |||
44 | { | 44 | { |
45 | return NULL; | 45 | return NULL; |
46 | } | 46 | } |
47 | 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, |
48 | u64 *size, unsigned int *flags) | 48 | u64 *size, unsigned int *flags) |
49 | { | 49 | { |
50 | return NULL; | 50 | return NULL; |
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index b8e241125201..535cecf1e02f 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h | |||
@@ -58,8 +58,8 @@ static inline int of_irq_map_oldworld(struct device_node *device, int index, | |||
58 | #endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */ | 58 | #endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */ |
59 | 59 | ||
60 | 60 | ||
61 | extern int of_irq_map_raw(struct device_node *parent, const u32 *intspec, | 61 | extern int of_irq_map_raw(struct device_node *parent, const __be32 *intspec, |
62 | u32 ointsize, const u32 *addr, | 62 | u32 ointsize, const __be32 *addr, |
63 | struct of_irq *out_irq); | 63 | struct of_irq *out_irq); |
64 | extern int of_irq_map_one(struct device_node *device, int index, | 64 | extern int of_irq_map_one(struct device_node *device, int index, |
65 | struct of_irq *out_irq); | 65 | struct of_irq *out_irq); |