cpuidle: Check if device is already registered
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 12 Jun 2013 13:08:55 +0000 (15:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jul 2013 00:09:48 +0000 (02:09 +0200)
commitc878a52d3c7cabab5b24460825c24eafd8be7058
tree98c5e7c8599b62deac5559dc08fef9174173a39e
parent5df0aa7341bd94ca2023a60c64c63faeb6ec209d
cpuidle: Check if device is already registered

Make __cpuidle_register_device() check whether or not the device has
been registered already and return -EBUSY immediately if that's the
case.

[rjw: Changelog]
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c