diff options
Diffstat (limited to 'drivers/edac/edac_pci.c')
-rw-r--r-- | drivers/edac/edac_pci.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index 51dd4e05a76f..ee87ef972ead 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c | |||
@@ -45,7 +45,7 @@ struct edac_pci_ctl_info *edac_pci_alloc_ctl_info(unsigned int sz_pvt, | |||
45 | void *p = NULL, *pvt; | 45 | void *p = NULL, *pvt; |
46 | unsigned int size; | 46 | unsigned int size; |
47 | 47 | ||
48 | debugf1("\n"); | 48 | edac_dbg(1, "\n"); |
49 | 49 | ||
50 | pci = edac_align_ptr(&p, sizeof(*pci), 1); | 50 | pci = edac_align_ptr(&p, sizeof(*pci), 1); |
51 | pvt = edac_align_ptr(&p, 1, sz_pvt); | 51 | pvt = edac_align_ptr(&p, 1, sz_pvt); |
@@ -80,7 +80,7 @@ EXPORT_SYMBOL_GPL(edac_pci_alloc_ctl_info); | |||
80 | */ | 80 | */ |
81 | void edac_pci_free_ctl_info(struct edac_pci_ctl_info *pci) | 81 | void edac_pci_free_ctl_info(struct edac_pci_ctl_info *pci) |
82 | { | 82 | { |
83 | debugf1("\n"); | 83 | edac_dbg(1, "\n"); |
84 | 84 | ||
85 | edac_pci_remove_sysfs(pci); | 85 | edac_pci_remove_sysfs(pci); |
86 | } | 86 | } |
@@ -97,7 +97,7 @@ static struct edac_pci_ctl_info *find_edac_pci_by_dev(struct device *dev) | |||
97 | struct edac_pci_ctl_info *pci; | 97 | struct edac_pci_ctl_info *pci; |
98 | struct list_head *item; | 98 | struct list_head *item; |
99 | 99 | ||
100 | debugf1("\n"); | 100 | edac_dbg(1, "\n"); |
101 | 101 | ||
102 | list_for_each(item, &edac_pci_list) { | 102 | list_for_each(item, &edac_pci_list) { |
103 | pci = list_entry(item, struct edac_pci_ctl_info, link); | 103 | pci = list_entry(item, struct edac_pci_ctl_info, link); |
@@ -122,7 +122,7 @@ static int add_edac_pci_to_global_list(struct edac_pci_ctl_info *pci) | |||
122 | struct list_head *item, *insert_before; | 122 | struct list_head *item, *insert_before; |
123 | struct edac_pci_ctl_info *rover; | 123 | struct edac_pci_ctl_info *rover; |
124 | 124 | ||
125 | debugf1("\n"); | 125 | edac_dbg(1, "\n"); |
126 | 126 | ||
127 | insert_before = &edac_pci_list; | 127 | insert_before = &edac_pci_list; |
128 | 128 | ||
@@ -226,7 +226,7 @@ static void edac_pci_workq_function(struct work_struct *work_req) | |||
226 | int msec; | 226 | int msec; |
227 | unsigned long delay; | 227 | unsigned long delay; |
228 | 228 | ||
229 | debugf3("checking\n"); | 229 | edac_dbg(3, "checking\n"); |
230 | 230 | ||
231 | mutex_lock(&edac_pci_ctls_mutex); | 231 | mutex_lock(&edac_pci_ctls_mutex); |
232 | 232 | ||
@@ -261,7 +261,7 @@ static void edac_pci_workq_function(struct work_struct *work_req) | |||
261 | static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci, | 261 | static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci, |
262 | unsigned int msec) | 262 | unsigned int msec) |
263 | { | 263 | { |
264 | debugf0("\n"); | 264 | edac_dbg(0, "\n"); |
265 | 265 | ||
266 | INIT_DELAYED_WORK(&pci->work, edac_pci_workq_function); | 266 | INIT_DELAYED_WORK(&pci->work, edac_pci_workq_function); |
267 | queue_delayed_work(edac_workqueue, &pci->work, | 267 | queue_delayed_work(edac_workqueue, &pci->work, |
@@ -276,7 +276,7 @@ static void edac_pci_workq_teardown(struct edac_pci_ctl_info *pci) | |||
276 | { | 276 | { |
277 | int status; | 277 | int status; |
278 | 278 | ||
279 | debugf0("\n"); | 279 | edac_dbg(0, "\n"); |
280 | 280 | ||
281 | status = cancel_delayed_work(&pci->work); | 281 | status = cancel_delayed_work(&pci->work); |
282 | if (status == 0) | 282 | if (status == 0) |
@@ -293,7 +293,7 @@ static void edac_pci_workq_teardown(struct edac_pci_ctl_info *pci) | |||
293 | void edac_pci_reset_delay_period(struct edac_pci_ctl_info *pci, | 293 | void edac_pci_reset_delay_period(struct edac_pci_ctl_info *pci, |
294 | unsigned long value) | 294 | unsigned long value) |
295 | { | 295 | { |
296 | debugf0("\n"); | 296 | edac_dbg(0, "\n"); |
297 | 297 | ||
298 | edac_pci_workq_teardown(pci); | 298 | edac_pci_workq_teardown(pci); |
299 | 299 | ||
@@ -333,7 +333,7 @@ EXPORT_SYMBOL_GPL(edac_pci_alloc_index); | |||
333 | */ | 333 | */ |
334 | int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx) | 334 | int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx) |
335 | { | 335 | { |
336 | debugf0("\n"); | 336 | edac_dbg(0, "\n"); |
337 | 337 | ||
338 | pci->pci_idx = edac_idx; | 338 | pci->pci_idx = edac_idx; |
339 | pci->start_time = jiffies; | 339 | pci->start_time = jiffies; |
@@ -393,7 +393,7 @@ struct edac_pci_ctl_info *edac_pci_del_device(struct device *dev) | |||
393 | { | 393 | { |
394 | struct edac_pci_ctl_info *pci; | 394 | struct edac_pci_ctl_info *pci; |
395 | 395 | ||
396 | debugf0("\n"); | 396 | edac_dbg(0, "\n"); |
397 | 397 | ||
398 | mutex_lock(&edac_pci_ctls_mutex); | 398 | mutex_lock(&edac_pci_ctls_mutex); |
399 | 399 | ||
@@ -430,7 +430,7 @@ EXPORT_SYMBOL_GPL(edac_pci_del_device); | |||
430 | */ | 430 | */ |
431 | static void edac_pci_generic_check(struct edac_pci_ctl_info *pci) | 431 | static void edac_pci_generic_check(struct edac_pci_ctl_info *pci) |
432 | { | 432 | { |
433 | debugf4("\n"); | 433 | edac_dbg(4, "\n"); |
434 | edac_pci_do_parity_check(); | 434 | edac_pci_do_parity_check(); |
435 | } | 435 | } |
436 | 436 | ||
@@ -475,7 +475,7 @@ struct edac_pci_ctl_info *edac_pci_create_generic_ctl(struct device *dev, | |||
475 | pdata->edac_idx = edac_pci_idx++; | 475 | pdata->edac_idx = edac_pci_idx++; |
476 | 476 | ||
477 | if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { | 477 | if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { |
478 | debugf3("failed edac_pci_add_device()\n"); | 478 | edac_dbg(3, "failed edac_pci_add_device()\n"); |
479 | edac_pci_free_ctl_info(pci); | 479 | edac_pci_free_ctl_info(pci); |
480 | return NULL; | 480 | return NULL; |
481 | } | 481 | } |
@@ -491,7 +491,7 @@ EXPORT_SYMBOL_GPL(edac_pci_create_generic_ctl); | |||
491 | */ | 491 | */ |
492 | void edac_pci_release_generic_ctl(struct edac_pci_ctl_info *pci) | 492 | void edac_pci_release_generic_ctl(struct edac_pci_ctl_info *pci) |
493 | { | 493 | { |
494 | debugf0("pci mod=%s\n", pci->mod_name); | 494 | edac_dbg(0, "pci mod=%s\n", pci->mod_name); |
495 | 495 | ||
496 | edac_pci_del_device(pci->dev); | 496 | edac_pci_del_device(pci->dev); |
497 | edac_pci_free_ctl_info(pci); | 497 | edac_pci_free_ctl_info(pci); |