diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-01-06 18:02:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-25 11:03:47 +0100 |
commit | 6cd38c25bf3f345c0b5402a6a32f37318811613b (patch) | |
tree | a4cb270c24d9f93da3a6c6b255124c6ec1375a4d /drivers/platform | |
parent | a2f1d9b7030bd388347fa0b77383ab6e06a44c63 (diff) | |
download | linux-stable-6cd38c25bf3f345c0b5402a6a32f37318811613b.tar.gz linux-stable-6cd38c25bf3f345c0b5402a6a32f37318811613b.tar.bz2 linux-stable-6cd38c25bf3f345c0b5402a6a32f37318811613b.zip |
tc1100-wmi: fix build warning when CONFIG_PM not enabled
commit 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc upstream.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform')
-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 { u32 jogdial; }; +#ifdef CONFIG_PM static struct tc1100_data suspend_data; +#endif /* -------------------------------------------------------------------------- Device Management |