Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335576
b: refs/heads/master
c: 0bce04b
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Larsson authored and David S. Miller committed Nov 10, 2012
1 parent a8f51c6 commit c554089
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20424d85f8a07090fd32c6fad343f91b63c730b0
refs/heads/master: 0bce04be442cf4d6e4ba9dac2f0a4c5ee88af5c5
5 changes: 5 additions & 0 deletions trunk/arch/sparc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ extern char *of_console_options;
extern void irq_trans_init(struct device_node *dp);
extern char *build_path_component(struct device_node *dp);

/* SPARC has a local implementation */
extern int of_address_to_resource(struct device_node *dev, int index,
struct resource *r);
#define of_address_to_resource of_address_to_resource

#endif /* __KERNEL__ */
#endif /* _SPARC_PROM_H */
2 changes: 2 additions & 0 deletions trunk/include/linux/of_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ static inline unsigned long pci_address_to_pio(phys_addr_t addr) { return -1; }
#endif

#else /* CONFIG_OF_ADDRESS */
#ifndef of_address_to_resource
static inline int of_address_to_resource(struct device_node *dev, int index,
struct resource *r)
{
return -EINVAL;
}
#endif
static inline struct device_node *of_find_matching_node_by_address(
struct device_node *from,
const struct of_device_id *matches,
Expand Down

0 comments on commit c554089

Please sign in to comment.