[U-Boot] [PATCH] dm: pci: Fix build error in pci_auto_config_devices()

Simon Glass sjg at chromium.org
Sat Jul 25 16:07:53 CEST 2015


Hi Bin,

On 25 July 2015 at 04:44, Bin Meng <bmeng.cn at gmail.com> wrote:
> This needs to be squashed into commit e34580b to fix the build error
> in pci_auto_config_devices().
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/pci/pci-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
> index e87b7d0..c7d93f9 100644
> --- a/drivers/pci/pci-uclass.c
> +++ b/drivers/pci/pci-uclass.c
> @@ -304,7 +304,7 @@ int pci_auto_config_devices(struct udevice *bus)
>                 unsigned int max_bus;
>
>                 debug("%s: device %s\n", __func__, dev->name);
> -               max_bus = pciauto_config_device(hose, bdf);
> +               max_bus = pciauto_config_device(hose, pci_get_bdf(dev));
>                 sub_bus = max(sub_bus, max_bus);
>         }
>         debug("%s: done\n", __func__);
> --
> 1.8.2.1
>

Acked-by: Simon Glass <sjg at chromium.org>

Thanks, I've squashed this in. Sorry I did not get a chance to build test.

I'll do that now and then apply these patches to u-boot-x86/master.

Regards,
Simon


More information about the U-Boot mailing list