[PATCH] ARM: pci: pass a parent to pci_common_init()

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Apr 19 09:06:59 EDT 2013


On Fri, Apr 12, 2013 at 03:01:48PM +0200, Arnd Bergmann wrote:
> On Friday 12 April 2013, Andrew Murray wrote:
> > I would also be happy with this. Though alternatively could you
> > not just add a struct device to hw_pci? Then change pcibios_init_hw
> > to use hw->device instead of NULL?
> > 
> 
> I think struct hw_pci is meant to be statically defined, so that would
> not work if you need the same hw_pci for two host bridge devices.

The hw_pci structure is only referenced by the setup functions, and
never referred to again.  Anything of any relevance that is needed
later is copied out of that structure into others (like pci_sys_data).



More information about the linux-arm-kernel mailing list