Skip to content

Commit

Permalink
tc1100-wmi: fix build warning when CONFIG_PM not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Darren Hart committed Jan 20, 2016
1 parent b0a095f commit 75d7e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/platform/x86/tc1100-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ struct tc1100_data {
u32 jogdial;
};

#ifdef CONFIG_PM
static struct tc1100_data suspend_data;
#endif

/* --------------------------------------------------------------------------
Device Management
Expand Down

0 comments on commit 75d7e7d

Please sign in to comment.