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

Re: [PATCH 10/13] powerpc: Add arch/powerpc mv64x60 PCI setup

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

On Thursday 26 April 2007, Mark A. Greer wrote:
+void __init mv64x60_pci_init(void)
+{
+=A0=A0=A0=A0=A0=A0=A0struct device_node *np =3D NULL;
+
+=A0=A0=A0=A0=A0=A0=A0ppc_md.pci_exclude_device =3D mv64x60_exclude_devic=
e;
+
+=A0=A0=A0=A0=A0=A0=A0while ((np =3D of_find_compatible_node(np, "pci", "=
mv64x60-pci")))
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0mv64x60_add_bridge(np);
+}
This is a similar mistake to the previous two, but somewhat different:

You actually duplicate code that is already present in of_platform.c.
AFAICS, all you should need to do is implement the ppc_md.pci_setup_phb()
function instead of your own handmade device tree scanning.

	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