Arnd Bergmann wrote: > On Wednesday 01 August 2007, Dave Jiang wrote: >> Doh! I sent out the reworked patches right before your comments. Do you >> happen >> to know where I can find an example of how to do this? In regards to making a >> platform_device a child of the PCI host bridge that is.... Thanks! >> > > When you use an open-coded version of platform_device_register_simple(), > you can set dev->parent before calling platform_device_add. > > Arnd <><
Do you mean the pci_controller hose that's allocated in fsl_add_bridge? Couple questions.... 1. How do I even get access to that? (in fsl_soc.c that is) 2. pci_controller has no "struct device" member. It only has "struct device *parent". What do I set the dev->parent of the platform device to? -- ------------------------------------------------------ Dave Jiang Software Engineer MontaVista Software, Inc. http://www.mvista.com ------------------------------------------------------ _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev