[PATCH] PCI: clean up dynamic pci id logic
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jun 2005 09:18:12 +0000 (02:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2005 20:35:50 +0000 (13:35 -0700)
commit75865858971add95809c5c9cd35dc4cfba08e33b
treee8b3fe78e15696f36156d1f94d35b7711590365f
parent299de0343c7d18448a69c635378342e9214b14af
[PATCH] PCI: clean up dynamic pci id logic

The dynamic pci id logic has been bothering me for a while, and now that
I started to look into how to move some of this to the driver core, I
thought it was time to clean it all up.

It ends up making the code smaller, and easier to follow, and fixes a
few bugs at the same time (dynamic ids were not being matched
everywhere, and so could be missed on some call paths for new devices,
semaphore not needed to be grabbed when adding a new id and calling the
driver core, etc.)

I also renamed the function pci_match_device() to pci_match_id() as
that's what it really does.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
drivers/char/hw_random.c
drivers/char/watchdog/i8xx_tco.c
drivers/ide/setup-pci.c
drivers/parport/parport_pc.c
drivers/pci/pci-driver.c
include/linux/pci-dynids.h [deleted file]
include/linux/pci.h
sound/pci/bt87x.c