diff options
Diffstat (limited to 'drivers/edac/edac_device.c')
-rw-r--r-- | drivers/edac/edac_device.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index cb397d9437d1..ed46949f25cf 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c | |||
@@ -82,8 +82,8 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
82 | void *pvt, *p; | 82 | void *pvt, *p; |
83 | int err; | 83 | int err; |
84 | 84 | ||
85 | debugf4("%s() instances=%d blocks=%d\n", | 85 | debugf4("instances=%d blocks=%d\n", |
86 | __func__, nr_instances, nr_blocks); | 86 | nr_instances, nr_blocks); |
87 | 87 | ||
88 | /* Calculate the size of memory we need to allocate AND | 88 | /* Calculate the size of memory we need to allocate AND |
89 | * determine the offsets of the various item arrays | 89 | * determine the offsets of the various item arrays |
@@ -156,8 +156,8 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
156 | /* Name of this edac device */ | 156 | /* Name of this edac device */ |
157 | snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name); | 157 | snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name); |
158 | 158 | ||
159 | debugf4("%s() edac_dev=%p next after end=%p\n", | 159 | debugf4("edac_dev=%p next after end=%p\n", |
160 | __func__, dev_ctl, pvt + sz_private ); | 160 | dev_ctl, pvt + sz_private ); |
161 | 161 | ||
162 | /* Initialize every Instance */ | 162 | /* Initialize every Instance */ |
163 | for (instance = 0; instance < nr_instances; instance++) { | 163 | for (instance = 0; instance < nr_instances; instance++) { |
@@ -178,9 +178,9 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
178 | snprintf(blk->name, sizeof(blk->name), | 178 | snprintf(blk->name, sizeof(blk->name), |
179 | "%s%d", edac_block_name, block+offset_value); | 179 | "%s%d", edac_block_name, block+offset_value); |
180 | 180 | ||
181 | debugf4("%s() instance=%d inst_p=%p block=#%d " | 181 | debugf4("instance=%d inst_p=%p block=#%d " |
182 | "block_p=%p name='%s'\n", | 182 | "block_p=%p name='%s'\n", |
183 | __func__, instance, inst, block, | 183 | instance, inst, block, |
184 | blk, blk->name); | 184 | blk, blk->name); |
185 | 185 | ||
186 | /* if there are NO attributes OR no attribute pointer | 186 | /* if there are NO attributes OR no attribute pointer |
@@ -194,8 +194,8 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
194 | attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; | 194 | attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; |
195 | blk->block_attributes = attrib_p; | 195 | blk->block_attributes = attrib_p; |
196 | 196 | ||
197 | debugf4("%s() THIS BLOCK_ATTRIB=%p\n", | 197 | debugf4("THIS BLOCK_ATTRIB=%p\n", |
198 | __func__, blk->block_attributes); | 198 | blk->block_attributes); |
199 | 199 | ||
200 | /* Initialize every user specified attribute in this | 200 | /* Initialize every user specified attribute in this |
201 | * block with the data the caller passed in | 201 | * block with the data the caller passed in |
@@ -214,9 +214,9 @@ struct edac_device_ctl_info *edac_device_alloc_ctl_info( | |||
214 | 214 | ||
215 | attrib->block = blk; /* up link */ | 215 | attrib->block = blk; /* up link */ |
216 | 216 | ||
217 | debugf4("%s() alloc-attrib=%p attrib_name='%s' " | 217 | debugf4("alloc-attrib=%p attrib_name='%s' " |
218 | "attrib-spec=%p spec-name=%s\n", | 218 | "attrib-spec=%p spec-name=%s\n", |
219 | __func__, attrib, attrib->attr.name, | 219 | attrib, attrib->attr.name, |
220 | &attrib_spec[attr], | 220 | &attrib_spec[attr], |
221 | attrib_spec[attr].attr.name | 221 | attrib_spec[attr].attr.name |
222 | ); | 222 | ); |
@@ -273,7 +273,7 @@ static struct edac_device_ctl_info *find_edac_device_by_dev(struct device *dev) | |||
273 | struct edac_device_ctl_info *edac_dev; | 273 | struct edac_device_ctl_info *edac_dev; |
274 | struct list_head *item; | 274 | struct list_head *item; |
275 | 275 | ||
276 | debugf0("%s()\n", __func__); | 276 | debugf0("\n"); |
277 | 277 | ||
278 | list_for_each(item, &edac_device_list) { | 278 | list_for_each(item, &edac_device_list) { |
279 | edac_dev = list_entry(item, struct edac_device_ctl_info, link); | 279 | edac_dev = list_entry(item, struct edac_device_ctl_info, link); |
@@ -408,7 +408,7 @@ static void edac_device_workq_function(struct work_struct *work_req) | |||
408 | void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev, | 408 | void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev, |
409 | unsigned msec) | 409 | unsigned msec) |
410 | { | 410 | { |
411 | debugf0("%s()\n", __func__); | 411 | debugf0("\n"); |
412 | 412 | ||
413 | /* take the arg 'msec' and set it into the control structure | 413 | /* take the arg 'msec' and set it into the control structure |
414 | * to used in the time period calculation | 414 | * to used in the time period calculation |
@@ -496,7 +496,7 @@ EXPORT_SYMBOL_GPL(edac_device_alloc_index); | |||
496 | */ | 496 | */ |
497 | int edac_device_add_device(struct edac_device_ctl_info *edac_dev) | 497 | int edac_device_add_device(struct edac_device_ctl_info *edac_dev) |
498 | { | 498 | { |
499 | debugf0("%s()\n", __func__); | 499 | debugf0("\n"); |
500 | 500 | ||
501 | #ifdef CONFIG_EDAC_DEBUG | 501 | #ifdef CONFIG_EDAC_DEBUG |
502 | if (edac_debug_level >= 3) | 502 | if (edac_debug_level >= 3) |
@@ -570,7 +570,7 @@ struct edac_device_ctl_info *edac_device_del_device(struct device *dev) | |||
570 | { | 570 | { |
571 | struct edac_device_ctl_info *edac_dev; | 571 | struct edac_device_ctl_info *edac_dev; |
572 | 572 | ||
573 | debugf0("%s()\n", __func__); | 573 | debugf0("\n"); |
574 | 574 | ||
575 | mutex_lock(&device_ctls_mutex); | 575 | mutex_lock(&device_ctls_mutex); |
576 | 576 | ||