From c70057990b46e5d2ef5c08383c4642d1f77f6832 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Wed, 21 Sep 2011 14:10:43 +0200 Subject: [PATCH] --- yaml --- r: 295431 b: refs/heads/master c: 5e8e19bf6c3c9d8ecf74e2a7fdae99a76949bdf6 h: refs/heads/master i: 295429: 503973f95f6cc1e1d1d095429eccf1e39cd0cd08 295427: 111298807d67855eeb28fd8ab58157e3cff1ab78 295423: 1e980cc1626de16993032f0f3477e0fddb743d2c v: v3 --- [refs] | 2 +- trunk/Documentation/edac.txt | 4 ++-- trunk/drivers/edac/edac_mc_sysfs.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 6c25bc69b049..62576a714100 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 11b0a31473edf74b70ab6f8fe857b61bff82d7cc +refs/heads/master: 5e8e19bf6c3c9d8ecf74e2a7fdae99a76949bdf6 diff --git a/trunk/Documentation/edac.txt b/trunk/Documentation/edac.txt index 249822cde82b..fdcc49fad8e1 100644 --- a/trunk/Documentation/edac.txt +++ b/trunk/Documentation/edac.txt @@ -334,8 +334,8 @@ Sdram memory scrubbing rate: Reading the file will return the actual scrubbing rate employed. - If configuration fails or memory scrubbing is not implemented, the value - of the attribute file will be -1. + If configuration fails or memory scrubbing is not implemented, accessing + that attribute will fail. diff --git a/trunk/drivers/edac/edac_mc_sysfs.c b/trunk/drivers/edac/edac_mc_sysfs.c index d56e63477d5c..e9a28f576d14 100644 --- a/trunk/drivers/edac/edac_mc_sysfs.c +++ b/trunk/drivers/edac/edac_mc_sysfs.c @@ -452,7 +452,7 @@ static ssize_t mci_sdram_scrub_rate_store(struct mem_ctl_info *mci, int new_bw = 0; if (!mci->set_sdram_scrub_rate) - return -EINVAL; + return -ENODEV; if (strict_strtoul(data, 10, &bandwidth) < 0) return -EINVAL; @@ -475,7 +475,7 @@ static ssize_t mci_sdram_scrub_rate_show(struct mem_ctl_info *mci, char *data) int bandwidth = 0; if (!mci->get_sdram_scrub_rate) - return -EINVAL; + return -ENODEV; bandwidth = mci->get_sdram_scrub_rate(mci); if (bandwidth < 0) {