From: Wade Farnsworth <wfarnsworth@mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: [PATCH 2/2] MPC8641 HPCN: publish all soc and flash devices
Date: Tue, 22 Jan 2008 09:47:12 -0700 [thread overview]
Message-ID: <1201020432.5716.159.camel@rhino> (raw)
In-Reply-To: <1201019917.5716.154.camel@rhino>
Publish all soc and flash devices from the device tree, similar to what
is done for other boards.
Signed-off-by: Wade Farnsworth <wfarnsworth@mvista.com>
---
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index 14f4e52..f266264 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -18,6 +18,7 @@
#include <linux/kdev_t.h>
#include <linux/delay.h>
#include <linux/seq_file.h>
+#include <linux/of_platform.h>
#include <asm/system.h>
#include <asm/time.h>
@@ -212,6 +213,21 @@ mpc86xx_time_init(void)
return 0;
}
+static struct of_device_id mpc86xx_ids[] = {
+ { .type = "soc", },
+ { .compatible = "soc", },
+ { .compatible = "cfi-flash", },
+ {},
+};
+
+static int __init mpc86xx_publish_devices(void)
+{
+ of_platform_bus_probe(NULL, mpc86xx_ids, NULL);
+
+ return 0;
+}
+device_initcall(mpc86xx_publish_devices);
+
define_machine(mpc86xx_hpcn) {
.name = "MPC86xx HPCN",
.probe = mpc86xx_hpcn_probe,
next prev parent reply other threads:[~2008-01-22 16:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 16:38 [PATCH 1/2] Add flash node to mpc8641_hpcn.dts Wade Farnsworth
2008-01-22 16:44 ` Kumar Gala
2008-01-22 16:47 ` Wade Farnsworth
2008-01-22 16:49 ` Kumar Gala
2008-01-22 16:47 ` Wade Farnsworth [this message]
2008-01-22 16:50 ` [PATCH 2/2] MPC8641 HPCN: publish all soc and flash devices Kumar Gala
2008-01-22 23:26 ` Stephen Rothwell
2008-01-22 20:13 ` [PATCH v2 1/2] Add localbus and flash nodes to mpc8641_hpcn.dts Wade Farnsworth
2008-01-22 20:17 ` [PATCH v2 2/2] MPC8641 HPCN: call of_platform_bus_probe() Wade Farnsworth
2008-01-22 20:36 ` Kumar Gala
2008-01-22 23:28 ` Stephen Rothwell
2008-01-22 23:36 ` Kumar Gala
2008-01-22 20:37 ` [PATCH v2 1/2] Add localbus and flash nodes to mpc8641_hpcn.dts Kumar Gala
2008-01-22 20:41 ` Jon Loeliger
2008-01-22 21:07 ` Kumar Gala
2008-01-22 21:19 ` Wade Farnsworth
2008-01-22 21:22 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1201020432.5716.159.camel@rhino \
--to=wfarnsworth@mvista.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.