Skip to content
Commit 95247b57 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

PCI: clean up search.c a lot



This cleans up the search.c file, now using the pci list of devices that
are created for the driver core, instead of relying on our separate list
of devices.  It's better to use the functions already created for this
kind of thing, instead of rolling our own all the time.

This work is done in anticipation of getting rid of that second list of
pci devices all together.

And it ends up saving code, always a nice benefit.

This also removes one compiler warning for when CONFIG_PCI_LEGACY is
enabled as we no longer internally use the deprecated functions anymore.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 34220909
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment