aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/mce_amd_inj.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/mce_amd_inj.c')
-rw-r--r--drivers/edac/mce_amd_inj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c
index 2ae78f20cc28..5e46a9fea31b 100644
--- a/drivers/edac/mce_amd_inj.c
+++ b/drivers/edac/mce_amd_inj.c
@@ -43,7 +43,7 @@ static ssize_t edac_inject_##reg##_store(struct kobject *kobj, \
43 int ret = 0; \ 43 int ret = 0; \
44 unsigned long value; \ 44 unsigned long value; \
45 \ 45 \
46 ret = strict_strtoul(data, 16, &value); \ 46 ret = kstrtoul(data, 16, &value); \
47 if (ret < 0) \ 47 if (ret < 0) \
48 printk(KERN_ERR "Error writing MCE " #reg " field.\n"); \ 48 printk(KERN_ERR "Error writing MCE " #reg " field.\n"); \
49 \ 49 \
@@ -83,7 +83,7 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj,
83 int ret = 0; 83 int ret = 0;
84 unsigned long value; 84 unsigned long value;
85 85
86 ret = strict_strtoul(data, 10, &value); 86 ret = kstrtoul(data, 10, &value);
87 if (ret < 0) { 87 if (ret < 0) {
88 printk(KERN_ERR "Invalid bank value!\n"); 88 printk(KERN_ERR "Invalid bank value!\n");
89 return -EINVAL; 89 return -EINVAL;