diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-21 15:34:57 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 15:53:46 -0500 |
commit | b40b97ae736cad3084b13d2969b10c474572de89 (patch) | |
tree | dd2a4e0a95c1da764a3b17056b5be1a4d631c18d /drivers/pci/pci-sysfs.c | |
parent | 8c610c120fb6ea279e8d01ce7aa555da29e59374 (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-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index f39378d9da15..68d56f02e721 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -284,7 +284,6 @@ msi_bus_store(struct device *dev, struct device_attribute *attr, | |||
284 | return count; | 284 | return count; |
285 | } | 285 | } |
286 | 286 | ||
287 | #ifdef CONFIG_HOTPLUG | ||
288 | static DEFINE_MUTEX(pci_remove_rescan_mutex); | 287 | static DEFINE_MUTEX(pci_remove_rescan_mutex); |
289 | static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf, | 288 | static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf, |
290 | size_t count) | 289 | size_t count) |
@@ -377,8 +376,6 @@ dev_bus_rescan_store(struct device *dev, struct device_attribute *attr, | |||
377 | return count; | 376 | return count; |
378 | } | 377 | } |
379 | 378 | ||
380 | #endif | ||
381 | |||
382 | #if defined(CONFIG_PM_RUNTIME) && defined(CONFIG_ACPI) | 379 | #if defined(CONFIG_PM_RUNTIME) && defined(CONFIG_ACPI) |
383 | static ssize_t d3cold_allowed_store(struct device *dev, | 380 | static ssize_t d3cold_allowed_store(struct device *dev, |
384 | struct device_attribute *attr, | 381 | struct device_attribute *attr, |
@@ -424,10 +421,8 @@ struct device_attribute pci_dev_attrs[] = { | |||
424 | __ATTR(broken_parity_status,(S_IRUGO|S_IWUSR), | 421 | __ATTR(broken_parity_status,(S_IRUGO|S_IWUSR), |
425 | broken_parity_status_show,broken_parity_status_store), | 422 | broken_parity_status_show,broken_parity_status_store), |
426 | __ATTR(msi_bus, 0644, msi_bus_show, msi_bus_store), | 423 | __ATTR(msi_bus, 0644, msi_bus_show, msi_bus_store), |
427 | #ifdef CONFIG_HOTPLUG | ||
428 | __ATTR(remove, (S_IWUSR|S_IWGRP), NULL, remove_store), | 424 | __ATTR(remove, (S_IWUSR|S_IWGRP), NULL, remove_store), |
429 | __ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, dev_rescan_store), | 425 | __ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, dev_rescan_store), |
430 | #endif | ||
431 | #if defined(CONFIG_PM_RUNTIME) && defined(CONFIG_ACPI) | 426 | #if defined(CONFIG_PM_RUNTIME) && defined(CONFIG_ACPI) |
432 | __ATTR(d3cold_allowed, 0644, d3cold_allowed_show, d3cold_allowed_store), | 427 | __ATTR(d3cold_allowed, 0644, d3cold_allowed_show, d3cold_allowed_store), |
433 | #endif | 428 | #endif |
@@ -435,9 +430,7 @@ struct device_attribute pci_dev_attrs[] = { | |||
435 | }; | 430 | }; |
436 | 431 | ||
437 | struct device_attribute pcibus_dev_attrs[] = { | 432 | struct device_attribute pcibus_dev_attrs[] = { |
438 | #ifdef CONFIG_HOTPLUG | ||
439 | __ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, dev_bus_rescan_store), | 433 | __ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, dev_bus_rescan_store), |
440 | #endif | ||
441 | __ATTR(cpuaffinity, S_IRUGO, pci_bus_show_cpumaskaffinity, NULL), | 434 | __ATTR(cpuaffinity, S_IRUGO, pci_bus_show_cpumaskaffinity, NULL), |
442 | __ATTR(cpulistaffinity, S_IRUGO, pci_bus_show_cpulistaffinity, NULL), | 435 | __ATTR(cpulistaffinity, S_IRUGO, pci_bus_show_cpulistaffinity, NULL), |
443 | __ATTR_NULL, | 436 | __ATTR_NULL, |