summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-08-03 01:14:46 -0700
committerSimon Glass <sjg@chromium.org>2018-08-08 12:49:31 +0100
commit59a160e8b93950244155c34ec6eb11e101ce49db (patch)
tree5b2d1ec6c99eedd90b0e0ab504387e93381c7135 /drivers/misc
parent4345998ae9dfad7ba0beb54ad4322134557504a9 (diff)
downloadu-boot-59a160e8b93950244155c34ec6eb11e101ce49db.tar.gz
u-boot-59a160e8b93950244155c34ec6eb11e101ce49db.tar.bz2
u-boot-59a160e8b93950244155c34ec6eb11e101ce49db.zip
pci: sandbox: swap_case: Declare dynamic driver matching
This adds a U_BOOT_PCI_DEVICE() declaration to the swap_case driver. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/swap_case.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 80ccb9f383..790bb0c4bd 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -285,3 +285,10 @@ U_BOOT_DRIVER(sandbox_swap_case_emul) = {
.priv_auto_alloc_size = sizeof(struct swap_case_priv),
.platdata_auto_alloc_size = sizeof(struct swap_case_platdata),
};
+
+static struct pci_device_id sandbox_swap_case_supported[] = {
+ { PCI_VDEVICE(SANDBOX, SANDBOX_PCI_DEVICE_ID), SWAP_CASE_DRV_DATA },
+ {},
+};
+
+U_BOOT_PCI_DEVICE(sandbox_swap_case_emul, sandbox_swap_case_supported);