From: Colin Ian King Date: Wed, 6 Jan 2016 18:02:59 +0000 (+0000) Subject: tc1100-wmi: fix build warning when CONFIG_PM not enabled X-Git-Tag: v4.4.118~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd38c25bf3f345c0b5402a6a32f37318811613b;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Darren Hart Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/platform/x86/tc1100-wmi.c b/drivers/platform/x86/tc1100-wmi.c index 89aa976f0ab2a..65b0a4845ddd3 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