Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123050
b: refs/heads/master
c: 3f3b163
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Paul Mackerras committed Dec 3, 2008
1 parent 69f83bf commit 679e507
Show file tree
Hide file tree
Showing 3 changed files with 25 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: a0e2f9f4a2487572803d5a00c7302db30e4c60d3
refs/heads/master: 3f3b1632022fcc8317fa3b3c1236471415b3a6b8
12 changes: 12 additions & 0 deletions trunk/arch/powerpc/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@ struct dev_archdata {
void *dma_data;
};

static inline void dev_archdata_set_node(struct dev_archdata *ad,
struct device_node *np)
{
ad->of_node = np;
}

static inline struct device_node *
dev_archdata_get_node(const struct dev_archdata *ad)
{
return ad->of_node;
}

#endif /* _ASM_POWERPC_DEVICE_H */
12 changes: 12 additions & 0 deletions trunk/arch/sparc/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ struct dev_archdata {
int numa_node;
};

static inline void dev_archdata_set_node(struct dev_archdata *ad,
struct device_node *np)
{
ad->prom_node = np;
}

static inline struct device_node *
dev_archdata_get_node(const struct dev_archdata *ad)
{
return ad->prom_node;
}

#endif /* _ASM_SPARC_DEVICE_H */

0 comments on commit 679e507

Please sign in to comment.