tc1100-wmi: fix build warning when CONFIG_PM not enabled
authorColin Ian King <colin.king@canonical.com>
Wed, 6 Jan 2016 18:02:59 +0000 (18:02 +0000)
committerSasha Levin <alexander.levin@microsoft.com>
Sun, 4 Mar 2018 15:28:31 +0000 (10:28 -0500)
commit7c47a2de520071c624a8aec463ba8bfdd767e497
treedbf553f271b55849295347b88e9a8dd9ba1fe097
parent33c5e9043ebd61a2b8b063c4f657f5739ef86519
tc1100-wmi: fix build warning when CONFIG_PM not enabled

[ Upstream commit 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc ]

Conditionally declare suspend_data on CONFIG_PM to avoid
the following warning when CONFIG_OM is not enabled:

drivers/platform/x86/tc1100-wmi.c:55:27: warning:
  'suspend_data' defined but not used [-Wunused-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/platform/x86/tc1100-wmi.c