mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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>
This commit is contained in:
parent
b0a095fc19
commit
75d7e7d7a8
@ -52,7 +52,9 @@ struct tc1100_data {
|
||||
u32 jogdial;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static struct tc1100_data suspend_data;
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Device Management
|
||||
|
Loading…
Reference in New Issue
Block a user