[PATCH/RFC] powerpc: Create PCI busses from of_platform

Segher Boessenkool segher at kernel.crashing.org
Sun Nov 5 02:40:31 EST 2006


> +static struct of_device_id of_pci_phb_ids[] = {
> +	{ .type = "pci", },
> +	{ .type = "pcix", },
> +	{ .type = "pcie", },
> +	{ .type = "pciex", },
> +	{ .type = "ht", },
> +	{}
> +};
> +
> +static struct of_platform_driver of_pci_phb_driver = {
> +       .name = "of-pci",
> +       .match_table = of_pci_phb_ids,
> +       .probe = of_pci_phb_probe,
> +       .driver = {
> +	       .multithread_probe = 1,
> +       },
> +};

Shouldn't you also/only check for compatible=pci?  Or maybe
that would give too much fallout from all the broken device
trees out there?


Segher




More information about the Linuxppc-dev mailing list