Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280134
b: refs/heads/master
c: 3ecdd05
h: refs/heads/master
v: v3
  • Loading branch information
Rob Herring committed Dec 28, 2011
1 parent aaea952 commit 55e25a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75c71848f22e6381f48614da23df2a43e374b498
refs/heads/master: 3ecdd0515287afbcde352077d59e4028dcfbb685
29 changes: 14 additions & 15 deletions trunk/include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ struct device_node {
#endif
};

#if defined(CONFIG_SPARC) || !defined(CONFIG_OF)
/* Dummy ref counting routines - to be implemented later */
static inline struct device_node *of_node_get(struct device_node *node)
{
return node;
}
static inline void of_node_put(struct device_node *node)
{
}
#else
extern struct device_node *of_node_get(struct device_node *node);
extern void of_node_put(struct device_node *node);
#endif

#ifdef CONFIG_OF

/* Pointer for first entry in chain of all nodes. */
Expand Down Expand Up @@ -95,21 +109,6 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag)

extern struct device_node *of_find_all_nodes(struct device_node *prev);

#if defined(CONFIG_SPARC)
/* Dummy ref counting routines - to be implemented later */
static inline struct device_node *of_node_get(struct device_node *node)
{
return node;
}
static inline void of_node_put(struct device_node *node)
{
}

#else
extern struct device_node *of_node_get(struct device_node *node);
extern void of_node_put(struct device_node *node);
#endif

/*
* OF address retrieval & translation
*/
Expand Down

0 comments on commit 55e25a4

Please sign in to comment.