diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-01-06 13:02:59 -0500 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-01-19 20:35:47 -0500 |
commit | 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc (patch) | |
tree | d908e7f8de834509c8af81d42bee2db6a37d9f04 | |
parent | b0a095fc193a5f257c3609b09298c0705fc32c0b (diff) |
tc1100-wmi: fix build warning when CONFIG_PM not enabled
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>
-rw-r--r-- | drivers/platform/x86/tc1100-wmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/tc1100-wmi.c b/drivers/platform/x86/tc1100-wmi.c index 89aa976f0ab2..65b0a4845ddd 100644 --- a/drivers/platform/x86/tc1100-wmi.c +++ b/drivers/platform/x86/tc1100-wmi.c | |||
@@ -52,7 +52,9 @@ struct tc1100_data { | |||
52 | u32 jogdial; | 52 | u32 jogdial; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | #ifdef CONFIG_PM | ||
55 | static struct tc1100_data suspend_data; | 56 | static struct tc1100_data suspend_data; |
57 | #endif | ||
56 | 58 | ||
57 | /* -------------------------------------------------------------------------- | 59 | /* -------------------------------------------------------------------------- |
58 | Device Management | 60 | Device Management |