From: Stefan Roese Date: Mon, 17 Aug 2020 09:07:43 +0200 Subject: [PATCH v2 06/25] pci: pci-uclass: Fix incorrect argument in map_physmem In-Reply-To: <20200817070802.1517632-1-sr@denx.de> References: <20200817070802.1517632-1-sr@denx.de> Message-ID: <20200817070802.1517632-7-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Suneel Garapati Fix argument ordering for map_physmem() called in dm_pci_map_ea_bar(). Additinally minor spelling correction. Signed-off-by: Suneel Garapati Reviewed-by: Simon Glass Cc: Bin Meng Signed-off-by: Stefan Roese --- Changes in v2: - Add Reviewed-by tag from Simon - Correct patch subject - Correct patch description in commit text - Minor spelling update Changes in v1: - Change patch subject drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 337ac137d1..fde5b83adf 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -1424,7 +1424,7 @@ static void *dm_pci_map_ea_bar(struct udevice *dev, int bar, int flags, } /* size ignored for now */ - return map_physmem(addr, flags, 0); + return map_physmem(addr, 0, flags); } return 0; @@ -1450,7 +1450,7 @@ void *dm_pci_map_bar(struct udevice *dev, int bar, int flags) /* * Pass "0" as the length argument to pci_bus_to_virt. The arg - * isn't actualy used on any platform because u-boot assumes a static + * isn't actually used on any platform because U-Boot assumes a static * linear mapping. In the future, this could read the BAR size * and pass that as the size if needed. */ -- 2.28.0