summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-01-10 02:59:49 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 15:49:43 -0800
commit024f78462c3da710642a54939888a92e28704653 (patch)
tree6ff97e571b36d66256d09cf06031b56ce789ec7e /drivers/base/base.h
parent4f58cb90bcb04cfe18f524d1c9a65edef5eb3f51 (diff)
downloadop-kernel-dev-024f78462c3da710642a54939888a92e28704653.zip
op-kernel-dev-024f78462c3da710642a54939888a92e28704653.tar.gz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index 7a6ae42..b858dfd 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -94,7 +94,7 @@ extern int hypervisor_init(void);
static inline int hypervisor_init(void) { return 0; }
#endif
extern int platform_bus_init(void);
-extern int cpu_dev_init(void);
+extern void cpu_dev_init(void);
extern int bus_add_device(struct device *dev);
extern void bus_probe_device(struct device *dev);
OpenPOWER on IntegriCloud