diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-10 10:22:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-24 09:20:12 -0400 |
commit | 939747bd680eb09bb98792b17a5bfd2f525afe9d (patch) | |
tree | 694fc4a5bd213b7723217123a60c4361375667d4 /drivers/edac/edac_mc.c | |
parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) |
i7core_edac: Be sure that the edac pci handler will be properly released
With multi-sockets, more than one edac pci handler is enabled. Be sure to
un-register all instances.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r-- | drivers/edac/edac_mc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 6b21e25f7a84..6b7e723e46be 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c | |||
@@ -239,13 +239,14 @@ void edac_mc_free(struct mem_ctl_info *mci) | |||
239 | EXPORT_SYMBOL_GPL(edac_mc_free); | 239 | EXPORT_SYMBOL_GPL(edac_mc_free); |
240 | 240 | ||
241 | 241 | ||
242 | /* | 242 | /** |
243 | * find_mci_by_dev | 243 | * find_mci_by_dev |
244 | * | 244 | * |
245 | * scan list of controllers looking for the one that manages | 245 | * scan list of controllers looking for the one that manages |
246 | * the 'dev' device | 246 | * the 'dev' device |
247 | * @dev: pointer to a struct device related with the MCI | ||
247 | */ | 248 | */ |
248 | static struct mem_ctl_info *find_mci_by_dev(struct device *dev) | 249 | struct mem_ctl_info *find_mci_by_dev(struct device *dev) |
249 | { | 250 | { |
250 | struct mem_ctl_info *mci; | 251 | struct mem_ctl_info *mci; |
251 | struct list_head *item; | 252 | struct list_head *item; |
@@ -261,6 +262,7 @@ static struct mem_ctl_info *find_mci_by_dev(struct device *dev) | |||
261 | 262 | ||
262 | return NULL; | 263 | return NULL; |
263 | } | 264 | } |
265 | EXPORT_SYMBOL_GPL(find_mci_by_dev); | ||
264 | 266 | ||
265 | /* | 267 | /* |
266 | * handler for EDAC to check if NMI type handler has asserted interrupt | 268 | * handler for EDAC to check if NMI type handler has asserted interrupt |