[PATCH 1/4] powerpc: mv64x60 - Use early_* PCI accessors for hotswap reg
Stephen Rothwell
sfr at canb.auug.org.au
Tue Jan 15 10:19:36 EST 2008
Hi Mark,
On Mon, 14 Jan 2008 15:51:50 -0700 "Mark A. Greer" <mgreer at mvista.com> wrote:
>
> +static inline struct pci_controller *mv64x60_find_hose(u32 idx)
> +{
> + struct device_node *phb;
> + struct pci_controller *hose;
> + const u32 *prop;
> + int len;
> +
> + for_each_compatible_node(phb, "pci", "marvell,mv64360-pci") {
> + prop = of_get_property(phb, "cell-index", &len);
> + if (prop && (len == sizeof(prop)) && (*prop == idx)) {
> + hose = pci_find_hose_for_OF_device(phb);
> + of_node_put(phb);
> + return hose;
> + }
> + }
> +
> + return NULL;
> +}
I would think that this is way to big to inline ...
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080115/da63a445/attachment.pgp>
More information about the Linuxppc-dev
mailing list