From: Akinobu Mita Date: Wed, 26 May 2010 21:43:31 +0000 (-0700) Subject: topology: convert cpu notifier to return encapsulate errno value X-Git-Tag: accepted/tizen/common/20141203.182822~11388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad84bb5b98bf81deae97e3bcd814675d6b4e6f72;p=platform%2Fkernel%2Flinux-arm64.git 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: Akinobu Mita Cc: Greg Kroah-Hartman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/topology.c b/drivers/base/topology.c index bf6b132..9fc630c 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c @@ -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)