diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-10 17:33:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-24 09:20:12 -0400 |
commit | 18c29002f95bc2f67c1c78d7fc7932843aa66657 (patch) | |
tree | e8c2ebba3c076a73c242605664b2c90c9660f7dd /drivers/edac | |
parent | 939747bd680eb09bb98792b17a5bfd2f525afe9d (diff) |
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.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 41418271964..4c1dcc1f562 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c | |||
@@ -39,6 +39,11 @@ | |||
39 | 39 | ||
40 | #include "edac_core.h" | 40 | #include "edac_core.h" |
41 | 41 | ||
42 | /* Static vars */ | ||
43 | static LIST_HEAD(i7core_edac_list); | ||
44 | static DEFINE_MUTEX(i7core_edac_lock); | ||
45 | static int probed; | ||
46 | |||
42 | /* | 47 | /* |
43 | * This is used for Nehalem-EP and Nehalem-EX devices, where the non-core | 48 | * This is used for Nehalem-EP and Nehalem-EX devices, where the non-core |
44 | * registers start at bus 255, and are not reported by BIOS. | 49 | * registers start at bus 255, and are not reported by BIOS. |
@@ -266,10 +271,6 @@ struct i7core_pvt { | |||
266 | struct edac_pci_ctl_info *i7core_pci; | 271 | struct edac_pci_ctl_info *i7core_pci; |
267 | }; | 272 | }; |
268 | 273 | ||
269 | /* Static vars */ | ||
270 | static LIST_HEAD(i7core_edac_list); | ||
271 | static DEFINE_MUTEX(i7core_edac_lock); | ||
272 | |||
273 | #define PCI_DESCR(device, function, device_id) \ | 274 | #define PCI_DESCR(device, function, device_id) \ |
274 | .dev = (device), \ | 275 | .dev = (device), \ |
275 | .func = (function), \ | 276 | .func = (function), \ |
@@ -1950,8 +1951,6 @@ fail: | |||
1950 | * < 0 for error code | 1951 | * < 0 for error code |
1951 | */ | 1952 | */ |
1952 | 1953 | ||
1953 | static int probed = 0; | ||
1954 | |||
1955 | static int __devinit i7core_probe(struct pci_dev *pdev, | 1954 | static int __devinit i7core_probe(struct pci_dev *pdev, |
1956 | const struct pci_device_id *id) | 1955 | const struct pci_device_id *id) |
1957 | { | 1956 | { |