Thread (87 messages) 87 messages, 8 authors, 2007-05-07

Re: [PATCH 8/13] powerpc: Add arch/powerpc mv64x60_eth platform data setup

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-04-26 00:18:54

On Thursday 26 April 2007, Mark A. Greer wrote:
Index: linux-2.6-powerpc-df/arch/powerpc/sysdev/mv64x60.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
quoted hunk ↗ jump to hunk
--- linux-2.6-powerpc-df.orig/arch/powerpc/sysdev/mv64x60.c
+++ linux-2.6-powerpc-df/arch/powerpc/sysdev/mv64x60.c
@@ -511,3 +511,138 @@ ret_node_put:
=A0}
=A0
=A0arch_initcall(mv64x60_mpsc_platform_device_init);
+
+/*
+ * Create mv64x60_eth platform device
+ */
+static int __init eth_register_shared_pdev(struct device_node *np)
+{
+=A0=A0=A0=A0=A0=A0=A0struct platform_device *pdev;
No need to put this into architecture specific code, just register
the of_platform_driver from mv643xx_init_module and use the device
you get passed in there.

Once arch/ppc is dead, you can remove the platform_driver from mv643xx
entirely.

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