diff options
-rw-r--r-- | Documentation/edac.txt | 4 | ||||
-rw-r--r-- | drivers/edac/edac_mc_sysfs.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/edac.txt b/Documentation/edac.txt index 249822cde82b..fdcc49fad8e1 100644 --- a/Documentation/edac.txt +++ b/Documentation/edac.txt | |||
@@ -334,8 +334,8 @@ Sdram memory scrubbing rate: | |||
334 | 334 | ||
335 | Reading the file will return the actual scrubbing rate employed. | 335 | Reading the file will return the actual scrubbing rate employed. |
336 | 336 | ||
337 | If configuration fails or memory scrubbing is not implemented, the value | 337 | If configuration fails or memory scrubbing is not implemented, accessing |
338 | of the attribute file will be -1. | 338 | that attribute will fail. |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index d56e63477d5c..e9a28f576d14 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -452,7 +452,7 @@ static ssize_t mci_sdram_scrub_rate_store(struct mem_ctl_info *mci, | |||
452 | int new_bw = 0; | 452 | int new_bw = 0; |
453 | 453 | ||
454 | if (!mci->set_sdram_scrub_rate) | 454 | if (!mci->set_sdram_scrub_rate) |
455 | return -EINVAL; | 455 | return -ENODEV; |
456 | 456 | ||
457 | if (strict_strtoul(data, 10, &bandwidth) < 0) | 457 | if (strict_strtoul(data, 10, &bandwidth) < 0) |
458 | return -EINVAL; | 458 | return -EINVAL; |
@@ -475,7 +475,7 @@ static ssize_t mci_sdram_scrub_rate_show(struct mem_ctl_info *mci, char *data) | |||
475 | int bandwidth = 0; | 475 | int bandwidth = 0; |
476 | 476 | ||
477 | if (!mci->get_sdram_scrub_rate) | 477 | if (!mci->get_sdram_scrub_rate) |
478 | return -EINVAL; | 478 | return -ENODEV; |
479 | 479 | ||
480 | bandwidth = mci->get_sdram_scrub_rate(mci); | 480 | bandwidth = mci->get_sdram_scrub_rate(mci); |
481 | if (bandwidth < 0) { | 481 | if (bandwidth < 0) { |