PCI: separate out pci_add_dynid()
authorTejun Heo <tj@kernel.org>
Thu, 3 Sep 2009 06:26:36 +0000 (15:26 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:43:58 +0000 (13:43 -0700)
commit9dba910e9de2c4aa15ec1286f10052c107ef48ca
tree4870eccc95e406ae8d490136f5d65953203418c8
parent825c423a35a80a8fd66398a3f9bde7f0b0187a76
PCI: separate out pci_add_dynid()

Separate out pci_add_dynid() from store_new_id() and export it so that
in-kernel code can add PCI IDs dynamically.  As the function will be
available regardless of HOTPLUG, put it and pull pci_free_dynids()
outside of CONFIG_HOTPLUG.

This will be used by pci-stub to initialize initial IDs via module
param.

While at it, remove bogus get_driver() failure check.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c
include/linux/pci.h