Thread (5 messages) flat view 5 messages, 2 authors, 2008-01-25

Re: [PATCH] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

From: Stephen Rothwell <hidden>
Date: 2008-01-24 20:58:30

Hi Anton,

On Thu, 24 Jan 2008 16:29:01 +0300 Anton Vorontsov [off-list ref] wrote:
On Thu, Jan 24, 2008 at 01:22:01PM +1100, Stephen Rothwell wrote:
quoted
On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov [off-list ref] wrote:
quoted
+++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c
+static int __init mpc836x_rdk_declare_of_platform_devices(void)
+{
+	const struct of_device_id mpc836x_rdk_ids[] = {
Please change this to static, __initdata and not const, thanks. These
arrays are usually defined outside a function, but that is not really a
problem.
Pity... we don't need these _ids anywhere outside that function. But
looking into objdump output I see the problem now.

Will change this back, thanks.
quoted
quoted
+static void __init mpc836x_rdk_setup_arch(void)
+{
+	struct device_node *np;
!defined(CONFIG_PCI) && !defined(CONFIG_QUICC_ENGINE) will produce a
warning here.
Good catch, thanks.
quoted
quoted
+	if (ppc_md.progress)
+		ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
+
+#ifdef CONFIG_PCI
+	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
+		mpc83xx_add_bridge(np);
+#endif
+
+#ifdef CONFIG_QUICC_ENGINE
+	qe_reset();
+
+	np = of_find_compatible_node(NULL, NULL, "fsl,qe-pario");
+	if (!np) {
+		pr_warning("QE PIO not initialized!\n");
+		return;
You need an of_node_put(np) before the return.
Hm, really? I think I don't. But if you insist... :-)
Sorry, I don't know what I was thinking - of course you don't need it.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help