]> git.baikalelectronics.ru Git - kernel.git/commit
cpu: Do not return errors from cpu_dev_init() which will be ignored
authorBen Hutchings <ben@decadent.org.uk>
Tue, 10 Jan 2012 02:59:49 +0000 (02:59 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 23:49:43 +0000 (15:49 -0800)
commitc354869c51aeda1fe822a4e6a2688638391b4d6d
tree6ff97e571b36d66256d09cf06031b56ce789ec7e
parentc5742567c2cee4ed3142412dc3bc6b491aad6fa7
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>
drivers/base/base.h
drivers/base/cpu.c