aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/search.c')
-rw-r--r--drivers/pci/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/search.c b/drivers/pci/search.c
index 2bbafe0f79b1..45f2b20ef513 100644
--- a/drivers/pci/search.c
+++ b/drivers/pci/search.c
@@ -416,7 +416,7 @@ exit:
416const struct pci_device_id *pci_find_present(const struct pci_device_id *ids) 416const struct pci_device_id *pci_find_present(const struct pci_device_id *ids)
417{ 417{
418 struct pci_dev *dev; 418 struct pci_dev *dev;
419 struct pci_device_id * found = NULL; 419 const struct pci_device_id *found = NULL;
420 420
421 WARN_ON(in_interrupt()); 421 WARN_ON(in_interrupt());
422 down_read(&pci_bus_sem); 422 down_read(&pci_bus_sem);
@@ -442,7 +442,6 @@ const struct pci_device_id *pci_find_present(const struct pci_device_id *ids)
442 * find devices that are usually built into a system, or for a general hint as 442 * find devices that are usually built into a system, or for a general hint as
443 * to if another device happens to be present at this specific moment in time. 443 * to if another device happens to be present at this specific moment in time.
444 */ 444 */
445
446int pci_dev_present(const struct pci_device_id *ids) 445int pci_dev_present(const struct pci_device_id *ids)
447{ 446{
448 return pci_find_present(ids) == NULL ? 0 : 1; 447 return pci_find_present(ids) == NULL ? 0 : 1;