public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] microblaze: Add dev_archdata node accessors
@ 2009-11-25 18:57 graeme.smecher
  2009-11-25 19:00 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: graeme.smecher @ 2009-11-25 18:57 UTC (permalink / raw)
  To: monstr; +Cc: linux-kernel, microblaze-uclinux, Graeme Smecher

From: Graeme Smecher <graeme.smecher@mail.mcgill.ca>

This syncs microblaze with powerpc and sparc architectures, which gained the
same accessors in Commit 3f3b1632022fcc8317fa3b3c1236471415b3a6b8.

Signed-off-by: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
---
 arch/microblaze/include/asm/device.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h
index 30286db..b8f654d 100644
--- a/arch/microblaze/include/asm/device.h
+++ b/arch/microblaze/include/asm/device.h
@@ -16,6 +16,18 @@ struct dev_archdata {
 	struct device_node	*of_node;
 };
 
+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;
+}
+
 struct pdev_archdata {
 };
 
-- 
1.6.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-25 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25 18:57 [PATCH] microblaze: Add dev_archdata node accessors graeme.smecher
2009-11-25 19:00 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox