diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2012-01-09 21:59:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-11 18:49:43 -0500 |
commit | 024f78462c3da710642a54939888a92e28704653 (patch) | |
tree | 6ff97e571b36d66256d09cf06031b56ce789ec7e /drivers/base/base.h | |
parent | 4f58cb90bcb04cfe18f524d1c9a65edef5eb3f51 (diff) |
cpu: Do not return errors from cpu_dev_init() which will be ignored
cpu_dev_init() is only called from driver_init(), which does not check
its return value. Therefore make cpu_dev_init() return void.
We must register the CPU subsystem, so panic if this fails.
If sched_create_sysfs_power_savings_entries() fails, the damage is
contained, so ignore this (as before).
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index 7a6ae4228761..b858dfd9a37c 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -94,7 +94,7 @@ extern int hypervisor_init(void); | |||
94 | static inline int hypervisor_init(void) { return 0; } | 94 | static inline int hypervisor_init(void) { return 0; } |
95 | #endif | 95 | #endif |
96 | extern int platform_bus_init(void); | 96 | extern int platform_bus_init(void); |
97 | extern int cpu_dev_init(void); | 97 | extern void cpu_dev_init(void); |
98 | 98 | ||
99 | extern int bus_add_device(struct device *dev); | 99 | extern int bus_add_device(struct device *dev); |
100 | extern void bus_probe_device(struct device *dev); | 100 | extern void bus_probe_device(struct device *dev); |