msm: footswitch-8x60: Move SoC-specific data to device files
The number of footswitch-related differences between SoCs (such as clocks
and bus ports) is large enough that it no longer makes sense to treat
them as exceptions in footswitch_probe().
Instead of using cpu_is_xxx() to manage these differences, move all
SoC-specific data to the SoC-specific device files and pass it to the
footswitch driver through platform data.
Change-Id: I30e2ec885e0340e4efec2bc5adc3fdd255cc7bb0
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064.c b/arch/arm/mach-msm/board-8064.c
index cfaa7da..f9b1e2e 100644
--- a/arch/arm/mach-msm/board-8064.c
+++ b/arch/arm/mach-msm/board-8064.c
@@ -2666,7 +2666,7 @@
}
apq8064_init_fb();
apq8064_init_gpu();
- platform_add_devices(apq8064_fs_devices, apq8064_num_fs_devices);
+ platform_add_devices(apq8064_footswitch, apq8064_num_footswitch);
apq8064_init_cam();
if (machine_is_apq8064_cdp() || machine_is_apq8064_liquid())