Skip to content
Snippets Groups Projects
Commit ad84bb5b authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

topology: convert cpu notifier to return encapsulate errno value


By the previous modification, the cpu notifier can return encapsulate
errno value.  This converts the cpu notifiers for topology.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a94247e7
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ static int __cpuinit topology_cpu_callback(struct notifier_block *nfb,
topology_remove_dev(cpu);
break;
}
return rc ? NOTIFY_BAD : NOTIFY_OK;
return notifier_from_errno(rc);
}
static int __cpuinit topology_sysfs_init(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment