projects/linux·commit ad84bb5b

topology: convert cpu notifier to return encapsulate errno value

ad84bb5b · Akinobu Mita <[email protected]> · 2010-05-26 14:43:31 -07:00

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

Signed-off-by: Akinobu Mita <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
ad84bb5b98bf81deae97e3bcd814675d6b4e6f72
Parents
a94247e7

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/base/topology.cmodified+1−1View file

drivers/base/topology.c

View file
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)