diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-27 22:13:27 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-05 22:16:42 -0700 |
commit | 250e039da8c7e485dabdc84f0457b2a901757e28 (patch) | |
tree | 0ca867115a43018fa6bb64e43e0791219eb1239c /include | |
parent | cfcf8ea2d7d35c25ef9c7d2a6b8063e7123818b7 (diff) | |
download | u-boot-250e039da8c7e485dabdc84f0457b2a901757e28.zip u-boot-250e039da8c7e485dabdc84f0457b2a901757e28.tar.gz u-boot-250e039da8c7e485dabdc84f0457b2a901757e28.tar.bz2 |
pci: Add a function to find a device by class
There is an existing function prototype in the header file but it is not
implemented. Implement something similar.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pci.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/pci.h b/include/pci.h index 4fbb8f6..004a048 100644 --- a/include/pci.h +++ b/include/pci.h @@ -644,8 +644,7 @@ extern int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev); extern pci_dev_t pci_find_device (unsigned int vendor, unsigned int device, int index); extern pci_dev_t pci_find_devices (struct pci_device_id *ids, int index); -extern pci_dev_t pci_find_class(int wanted_class, int wanted_sub_code, - int wanted_prog_if, int index); +pci_dev_t pci_find_class(unsigned int find_class, int index); extern int pci_hose_config_device(struct pci_controller *hose, pci_dev_t dev, |