]> git.karo-electronics.de Git - karo-tx-linux.git/commit
POWERPC: pseries: cpuidle: remove superfluous dev->state_count initialization
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 20 Dec 2013 18:47:24 +0000 (19:47 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Jan 2014 11:45:51 +0000 (12:45 +0100)
commit1a654169a20739861158f14bef6ec946b72e1f03
tree921985df4c3dc06ee5d2218f29c0d85502bc13c3
parentdcbb21c24ab7c3d7ba5c84a7dc1b7268a1fa4d97
POWERPC: pseries: cpuidle: remove superfluous dev->state_count initialization

pseries cpuidle driver sets dev->state_count to drv->state_count so
the default dev->state_count initialization in cpuidle_enable_device()
(called from cpuidle_register_device()) can be used instead.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/powerpc/platforms/pseries/processor_idle.c