X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fpci%2Fpci_auto.c;h=86ba6b523c11da2f7eb5ed47fe31b7798d1f59d1;hb=eddf6d286841b40c978d055a91d2966aaa6ad785;hp=ae61e24907a01bdb8ac8cc227f76a00b81fe985b;hpb=a6f0c4faa4c65a7b7048b12c9d180d7e1aad1721;p=u-boot diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index ae61e24907..86ba6b523c 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -7,10 +7,7 @@ * * Copyright 2000 MontaVista Software Inc. * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -89,7 +86,7 @@ void pciauto_setup_device(struct pci_controller *hose, struct pci_region *prefetch, struct pci_region *io) { - pci_addr_t bar_response; + u32 bar_response; pci_size_t bar_size; u16 cmdstat = 0; int bar, bar_nr = 0; @@ -300,7 +297,7 @@ void pciauto_config_init(struct pci_controller *hose) { int i; - hose->pci_io = hose->pci_mem = NULL; + hose->pci_io = hose->pci_mem = hose->pci_prefetch = NULL; for (i = 0; i < hose->region_count; i++) { switch(hose->regions[i].flags) {