History

Merge tag 'devicetree-fixes-for-4.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull DT fixes from Rob Herring: "I think this should be all for 4.4: - Fix incorrect warning about overlapping memory regions - Export of_irq_find_parent again which was made static in 4.4, but has users pending for 4.5. - Fix of_msi_map_rid declaration location - Fix re-entrancy for of_fdt_unflatten_tree - Clean-up of phys_addr_t printks" * tag 'devicetree-fixes-for-4.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: of/irq: move of_msi_map_rid declaration to the correct ifdef section of/irq: Export of_irq_find_parent again of/fdt: Add mutex protection for calls to __unflatten_device_tree() of/address: fix typo in comment block of of_translate_one() of: do not use 0x in front of %pa of: Fix comparison of reserved memory regions

Linus Torvalds committed 10 years ago

Commit eef121f2 parents abb7e2b eaddb575 files · +30 −12Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/of_irq.h+12−7
@@ -46,12 +46,14 @@ extern int of_irq_get(struct device_node *dev, int index); · 45 unmodified lines
4646 extern int of_irq_get_byname(struct device_node *dev, const char *name);
4747 extern int of_irq_to_resource_table(struct device_node *dev,
4848 struct resource *res, int nr_irqs);
49+extern struct device_node *of_irq_find_parent(struct device_node *child);
4950 extern struct irq_domain *of_msi_get_domain(struct device *dev,
5051 struct device_node *np,
5152 enum irq_domain_bus_token token);
5253 extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
5354 u32 rid);
5455 extern void of_msi_configure(struct device *dev, struct device_node *np);
56+u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
5557 #else
5658 static inline int of_irq_count(struct device_node *dev)
5759 {
@@ -70,6 +72,11 @@ static inline int of_irq_to_resource_table(struct device_node *dev, · 12 unmodified lines
7072 {
7173 return 0;
7274 }
75+static inline void *of_irq_find_parent(struct device_node *child)
76+{
77+ return NULL;
78+}
79+
7380 static inline struct irq_domain *of_msi_get_domain(struct device *dev,
7481 struct device_node *np,
7582 enum irq_domain_bus_token token)
@@ -84,6 +91,11 @@ static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev · 8 unmodified lines
8491 static inline void of_msi_configure(struct device *dev, struct device_node *np)
8592 {
8693 }
94+static inline u32 of_msi_map_rid(struct device *dev,
95+ struct device_node *msi_np, u32 rid_in)
96+{
97+ return rid_in;
98+}
8799 #endif
88100
89101 #if defined(CONFIG_OF_IRQ) || defined(CONFIG_SPARC)
@@ -93,7 +105,6 @@ static inline void of_msi_configure(struct device *dev, struct device_node *np) · 3 unmodified lines
93105 * so declare it here regardless of the CONFIG_OF_IRQ setting.
94106 */
95107 extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);
96−u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
97108
98109 #else /* !CONFIG_OF && !CONFIG_SPARC */
99110 static inline unsigned int irq_of_parse_and_map(struct device_node *dev,
@@ -101,12 +112,6 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, · 1 unmodified line
101112 {
102113 return 0;
103114 }
104−
105−static inline u32 of_msi_map_rid(struct device *dev,
106− struct device_node *msi_np, u32 rid_in)
107−{
108− return rid_in;
109−}
110115 #endif /* !CONFIG_OF */
111116
112117 #endif /* __OF_IRQ_H */