diff options
| -rw-r--r-- | drivers/edac/Makefile | 2 | ||||
| -rw-r--r-- | drivers/edac/edac_pci_sysfs.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/edac/Makefile b/drivers/edac/Makefile index 359aa499b200..d40c69a04df7 100644 --- a/drivers/edac/Makefile +++ b/drivers/edac/Makefile | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | obj-$(CONFIG_EDAC) := edac_stub.o | 9 | obj-$(CONFIG_EDAC) := edac_stub.o |
| 10 | obj-$(CONFIG_EDAC_MM_EDAC) += edac_core.o | 10 | obj-$(CONFIG_EDAC_MM_EDAC) += edac_core.o |
| 11 | 11 | ||
| 12 | edac_core-y := edac_mc.o edac_device.o edac_mc_sysfs.o edac_pci_sysfs.o | 12 | edac_core-y := edac_mc.o edac_device.o edac_mc_sysfs.o |
| 13 | edac_core-y += edac_module.o edac_device_sysfs.o | 13 | edac_core-y += edac_module.o edac_device_sysfs.o |
| 14 | 14 | ||
| 15 | ifdef CONFIG_PCI | 15 | ifdef CONFIG_PCI |
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c index e8658e451762..24d877f6e577 100644 --- a/drivers/edac/edac_pci_sysfs.c +++ b/drivers/edac/edac_pci_sysfs.c | |||
| @@ -14,9 +14,6 @@ | |||
| 14 | #include "edac_core.h" | 14 | #include "edac_core.h" |
| 15 | #include "edac_module.h" | 15 | #include "edac_module.h" |
| 16 | 16 | ||
| 17 | /* Turn off this whole feature if PCI is not configured */ | ||
| 18 | #ifdef CONFIG_PCI | ||
| 19 | |||
| 20 | #define EDAC_PCI_SYMLINK "device" | 17 | #define EDAC_PCI_SYMLINK "device" |
| 21 | 18 | ||
| 22 | /* data variables exported via sysfs */ | 19 | /* data variables exported via sysfs */ |
| @@ -761,5 +758,3 @@ MODULE_PARM_DESC(check_pci_errors, | |||
| 761 | module_param(edac_pci_panic_on_pe, int, 0644); | 758 | module_param(edac_pci_panic_on_pe, int, 0644); |
| 762 | MODULE_PARM_DESC(edac_pci_panic_on_pe, | 759 | MODULE_PARM_DESC(edac_pci_panic_on_pe, |
| 763 | "Panic on PCI Bus Parity error: 0=off 1=on"); | 760 | "Panic on PCI Bus Parity error: 0=off 1=on"); |
| 764 | |||
| 765 | #endif /* CONFIG_PCI */ | ||
