msm: pil: Implement tzapps support as a platform driver
Create a platform driver to manage the tzapps support instead of
having a module that exists for any 8660 device. This allows us
to add platform devices when the configuration actually supports
it and have pil_get() fail otherwise.
Change-Id: I22707d8947ef360522edb1cd9ee6792cbd8fe797
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-msm8x60.c b/arch/arm/mach-msm/devices-msm8x60.c
index eea7bc4..f1f6e64 100644
--- a/arch/arm/mach-msm/devices-msm8x60.c
+++ b/arch/arm/mach-msm/devices-msm8x60.c
@@ -194,6 +194,11 @@
.resource = msm_8660_q6_resources,
};
+struct platform_device msm_pil_tzapps = {
+ .name = "pil_tzapps",
+ .id = -1,
+};
+
static struct resource msm_uart1_dm_resources[] = {
{
.start = MSM_UART1DM_PHYS,