summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-08-10 18:33:27 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-24 11:20:12 -0200
commit18c29002f95bc2f67c1c78d7fc7932843aa66657 (patch)
treee8c2ebba3c076a73c242605664b2c90c9660f7dd /drivers/edac
parent939747bd680eb09bb98792b17a5bfd2f525afe9d (diff)
downloadop-kernel-dev-18c29002f95bc2f67c1c78d7fc7932843aa66657.zip
op-kernel-dev-18c29002f95bc2f67c1c78d7fc7932843aa66657.tar.gz
i7core_edac: move static vars to the beginning of the file
While here, don't initialize probed with 0. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7core_edac.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 4141827..4c1dcc1 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -39,6 +39,11 @@
#include "edac_core.h"
+/* Static vars */
+static LIST_HEAD(i7core_edac_list);
+static DEFINE_MUTEX(i7core_edac_lock);
+static int probed;
+
/*
* This is used for Nehalem-EP and Nehalem-EX devices, where the non-core
* registers start at bus 255, and are not reported by BIOS.
@@ -266,10 +271,6 @@ struct i7core_pvt {
struct edac_pci_ctl_info *i7core_pci;
};
-/* Static vars */
-static LIST_HEAD(i7core_edac_list);
-static DEFINE_MUTEX(i7core_edac_lock);
-
#define PCI_DESCR(device, function, device_id) \
.dev = (device), \
.func = (function), \
@@ -1950,8 +1951,6 @@ fail:
* < 0 for error code
*/
-static int probed = 0;
-
static int __devinit i7core_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
OpenPOWER on IntegriCloud