Skip to content

Commit

Permalink
drivers/base: cacheinfo: remove noisy error boot message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sudeep Holla authored and Greg Kroah-Hartman committed Nov 24, 2014
1 parent 6386a15 commit 6df43c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/base/cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6df43c9

Please sign in to comment.