aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-driver.c
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-11-21 15:34:57 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-28 15:53:46 -0500
commitb40b97ae736cad3084b13d2969b10c474572de89 (patch)
treedd2a4e0a95c1da764a3b17056b5be1a4d631c18d /drivers/pci/pci-driver.c
parent8c610c120fb6ea279e8d01ce7aa555da29e59374 (diff)
PCI: Remove CONFIG_HOTPLUG ifdefs
Remove conditional code based on CONFIG_HOTPLUG being false. It's always on now in preparation of it going away as an option. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r--drivers/pci/pci-driver.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 6c94fc9489e7..8919801cb27e 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -89,10 +89,6 @@ static void pci_free_dynids(struct pci_driver *drv)
89 spin_unlock(&drv->dynids.lock); 89 spin_unlock(&drv->dynids.lock);
90} 90}
91 91
92/*
93 * Dynamic device ID manipulation via sysfs is disabled for !CONFIG_HOTPLUG
94 */
95#ifdef CONFIG_HOTPLUG
96/** 92/**
97 * store_new_id - sysfs frontend to pci_add_dynid() 93 * store_new_id - sysfs frontend to pci_add_dynid()
98 * @driver: target device driver 94 * @driver: target device driver
@@ -191,10 +187,6 @@ static struct driver_attribute pci_drv_attrs[] = {
191 __ATTR_NULL, 187 __ATTR_NULL,
192}; 188};
193 189
194#else
195#define pci_drv_attrs NULL
196#endif /* CONFIG_HOTPLUG */
197
198/** 190/**
199 * pci_match_id - See if a pci device matches a given pci_id table 191 * pci_match_id - See if a pci device matches a given pci_id table
200 * @ids: array of PCI device id structures to search in 192 * @ids: array of PCI device id structures to search in
@@ -1223,13 +1215,6 @@ void pci_dev_put(struct pci_dev *dev)
1223 put_device(&dev->dev); 1215 put_device(&dev->dev);
1224} 1216}
1225 1217
1226#ifndef CONFIG_HOTPLUG
1227int pci_uevent(struct device *dev, struct kobj_uevent_env *env)
1228{
1229 return -ENODEV;
1230}
1231#endif
1232
1233struct bus_type pci_bus_type = { 1218struct bus_type pci_bus_type = {
1234 .name = "pci", 1219 .name = "pci",
1235 .match = pci_bus_match, 1220 .match = pci_bus_match,