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)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 20 Jan 2016 01:35:47 +0000 (17:35 -0800)
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>
drivers/platform/x86/tc1100-wmi.c

index 89aa976f0ab2a17c8cbed83bace078bf555c7384..65b0a4845ddd34545be22a96919952ac9fac07de 100644 (file)
@@ -52,7 +52,9 @@ struct tc1100_data {
        u32 jogdial;
 };
 
+#ifdef CONFIG_PM
 static struct tc1100_data suspend_data;
+#endif
 
 /* --------------------------------------------------------------------------
                                Device Management