tpm_tis / PM: Fix unused function warning for CONFIG_PM_SLEEP
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Aug 2012 21:00:35 +0000 (23:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 10 Aug 2012 12:29:50 +0000 (14:29 +0200)
commit07368d32f1a67e797def08cf2ee3ea1647b204b6
treef73b3d89ae6358eb775def3366ccf487016046dc
parent3567a4e2c52ce2f6fe74fc85690335ec7c96608e
tpm_tis / PM: Fix unused function warning for CONFIG_PM_SLEEP

According to a compiler warning, the tpm_tis_resume() function is not
used for CONFIG_PM_SLEEP unset, so add a #ifdef to prevent it from
being built in that case.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/char/tpm/tpm_tis.c