commit | b52142004fbdfd6db0091ba7ae33c91e3b459034 | [log] [tgz] |
---|---|---|
author | Stefan Roese <sr@denx.de> | Fri Jan 25 11:52:42 2019 +0100 |
committer | Stefan Roese <sr@denx.de> | Tue Feb 05 14:22:24 2019 +0100 |
tree | 82a451e32969f8ee4d49448b82f751ecdb816f41 | |
parent | e5fd39c886485e3dec77f4438a6e364c2987cf5f [diff] |
pci: Add pci_get_devfn() to extract devfn from the fdt_pci_addr This function will be used by the Marvell Armada XP/38x PCIe driver, which is moved to DM right now. So let's extract the functionality from pci_uclass_child_post_bind() to make it available. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>