summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/device.h')
-rw-r--r--arch/sparc/include/asm/device.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/device.h b/arch/sparc/include/asm/device.h
index 19790eb99cc6..3702e087df2c 100644
--- a/arch/sparc/include/asm/device.h
+++ b/arch/sparc/include/asm/device.h
@@ -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 */
OpenPOWER on IntegriCloud