]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26d9aca5b5199066fe086d1c18a1372e21899eec
treef73b3d89ae6358eb775def3366ccf487016046dc
parente605cd9f03d40b4190051526c9b876b3c27d58f8
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