Skip to content

Commit 5e351cd

Browse files
committed
Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux-2.6
Pull device tree regression fix from Grant Likely: "Simple build regression fix for DT device drivers on Sparc. An earlier change had masked out the of_iomap() helper on SPARC." * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux-2.6: of/address: sparc: Declare of_iomap as an extern function for sparc again
2 parents a0543d6 + 0e622d3 commit 5e351cd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/sparc/include/asm/prom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ extern char *of_console_options;
6363
extern void irq_trans_init(struct device_node *dp);
6464
extern char *build_path_component(struct device_node *dp);
6565

66-
/* SPARC has a local implementation */
66+
/* SPARC has local implementations */
6767
extern int of_address_to_resource(struct device_node *dev, int index,
6868
struct resource *r);
6969
#define of_address_to_resource of_address_to_resource
7070

71+
void __iomem *of_iomap(struct device_node *node, int index);
72+
#define of_iomap of_iomap
73+
7174
#endif /* __KERNEL__ */
7275
#endif /* _SPARC_PROM_H */

include/linux/of_address.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ static inline struct device_node *of_find_matching_node_by_address(
4242
{
4343
return NULL;
4444
}
45+
#ifndef of_iomap
4546
static inline void __iomem *of_iomap(struct device_node *device, int index)
4647
{
4748
return NULL;
4849
}
50+
#endif
4951
static inline const __be32 *of_get_address(struct device_node *dev, int index,
5052
u64 *size, unsigned int *flags)
5153
{

0 commit comments

Comments
 (0)