summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2010-05-26 14:43:31 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 09:12:48 -0700
commitad84bb5b98bf81deae97e3bcd814675d6b4e6f72 (patch)
tree0bebd51caea6f4dc2dfd213c20a3fd8d74648db1
parenta94247e7fb99170590dc9592792045c6fa49c7f5 (diff)
downloadlinux-stable-ad84bb5b98bf81deae97e3bcd814675d6b4e6f72.tar.gz
linux-stable-ad84bb5b98bf81deae97e3bcd814675d6b4e6f72.tar.bz2
linux-stable-ad84bb5b98bf81deae97e3bcd814675d6b4e6f72.zip
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 <akinobu.mita@gmail.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/base/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/topology.c b/drivers/base/topology.c
index bf6b13206d00..9fc630ce1ddb 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)