summaryrefslogtreecommitdiffstats
path: root/drivers/misc/swap_case.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:56:04 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:57:40 +0800
commitfae2c16ede7bf00c8f7873a96fc2b34d5345d751 (patch)
tree6cd1d6eefcec4403125dcfee011a899670a46b43 /drivers/misc/swap_case.c
parentcea7c0956ac2134e67f9d93bd96b2f2b4b85b430 (diff)
downloadu-boot-fae2c16ede7bf00c8f7873a96fc2b34d5345d751.tar.gz
u-boot-fae2c16ede7bf00c8f7873a96fc2b34d5345d751.tar.xz
u-boot-fae2c16ede7bf00c8f7873a96fc2b34d5345d751.zip
sandbox: pci: Drop the get_devfn() method
This method is not used anymore since the bus/device/function of PCI devices can be obtained from their (parent's per-child) platform data. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/misc/swap_case.c')
-rw-r--r--drivers/misc/swap_case.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 8abf88a8ff..18d756e9cd 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -54,13 +54,6 @@ struct swap_case_priv {
char mem_text[MEM_TEXT_SIZE];
};
-static int sandbox_swap_case_get_devfn(struct udevice *dev)
-{
- struct pci_child_platdata *plat = dev_get_parent_platdata(dev);
-
- return plat->devfn;
-}
-
static int sandbox_swap_case_use_ea(struct udevice *dev)
{
return !!ofnode_get_property(dev->node, "use-ea", NULL);
@@ -393,7 +386,6 @@ static int sandbox_swap_case_unmap_physmem(struct udevice *dev,
}
static struct dm_pci_emul_ops sandbox_swap_case_emul_ops = {
- .get_devfn = sandbox_swap_case_get_devfn,
.read_config = sandbox_swap_case_read_config,
.write_config = sandbox_swap_case_write_config,
.read_io = sandbox_swap_case_read_io,