Skip to content

Commit

Permalink
i7core_edac: move static vars to the beginning of the file
Browse files Browse the repository at this point in the history
While here, don't initialize probed with 0.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 24, 2010
1 parent 939747b commit 18c2900
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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), \
Expand Down Expand Up @@ -1950,8 +1951,6 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
* < 0 for error code
*/

static int probed = 0;

static int __devinit i7core_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
Expand Down

0 comments on commit 18c2900

Please sign in to comment.