drivers/base: cacheinfo: remove noisy error boot message
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 12 Nov 2014 14:42:53 +0000 (14:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2014 17:33:05 +0000 (09:33 -0800)
On systems that don't support cacheinfo, this error message can be
considered noisy and irrelevant. The error messages can be added to
the functions that architectures implement overiding the weak default
definition if really required.

This patch removes the concerned error message in the generic code.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reported-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cacheinfo.c

index 8ed4ea1f37163d1d6da98bec58a6cb80a9de15b3..6e64563361f071703394694cd11c1493343071c2 100644 (file)
@@ -520,10 +520,8 @@ static int __init cacheinfo_sysfs_init(void)
 
        for_each_online_cpu(cpu) {
                rc = detect_cache_attributes(cpu);
-               if (rc) {
-                       pr_err("error detecting cacheinfo..cpu%d\n", cpu);
+               if (rc)
                        goto out;
-               }
                rc = cache_add_dev(cpu);
                if (rc) {
                        free_cache_attributes(cpu);