]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: pci-uclass: Fix incorrect argument in map_physmem
authorSuneel Garapati <sgarapati@marvell.com>
Sat, 19 Oct 2019 23:44:35 +0000 (16:44 -0700)
committerStefan Roese <sr@denx.de>
Tue, 25 Aug 2020 03:41:09 +0000 (05:41 +0200)
Fix argument ordering for map_physmem() called in dm_pci_map_ea_bar().
Additinally minor spelling correction.

Signed-off-by: Suneel Garapati <sgarapati@marvell.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c

index 337ac137d13c6e232edb5df884b48241295efb09..fde5b83adf44e2edc2f1afb420ac4364a96a5fca 100644 (file)
@@ -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.
         */