ARM: imx: cpuidle: use init/exit common routine
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2013 08:54:45 +0000 (08:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Apr 2013 11:45:23 +0000 (13:45 +0200)
commit54a4644b7a31b017375018d8266a22d3eabfcf0e
tree0b7452cb2f8fa25abacfd16e42e30f6bfc8c2513
parent3aec034590d98cb268b3a1f434a602b3d53b0ad2
ARM: imx: cpuidle: use init/exit common routine

The code intializes the cpuidle driver at different places.
The cpuidle driver for :
  * imx5 : is in the pm-imx5.c, the init function is in cpuidle.c
  * imx6 : is in cpuidle-imx6q.c, the init function is in cpuidle.c
           and cpuidle-imx6q.c

Instead of having the cpuidle code spread across different files,
let's create a driver for each SoC and use the common register function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/cpuidle-imx5.c [new file with mode: 0644]
arch/arm/mach-imx/cpuidle-imx6q.c
arch/arm/mach-imx/cpuidle.c [deleted file]
arch/arm/mach-imx/cpuidle.h
arch/arm/mach-imx/pm-imx5.c