cpuidle: mvebu: clean up multiple platform drivers
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Oct 2015 23:24:25 +0000 (00:24 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 23 Oct 2015 10:40:47 +0000 (12:40 +0200)
commitda1a64f80d8946d51744e48d0ba138c1b17a4852
treea600ba1f86e0ec4aef234d618862bc6375189681
parent7379047d5585187d1288486d4627873170d0005a
cpuidle: mvebu: clean up multiple platform drivers

There's no need to use multiple platform drivers, especially when we
want to do something different in the probe, but we still use a common
probe function.

We can use the platform ID system to only register one platform driver,
but have it match several devices, and give us the CPU idle driver via
the ID's driver_data.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/cpuidle-mvebu-v7.c