summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/tegra-kbc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/tegra-kbc.c')
-rwxr-xr-xdrivers/input/keyboard/tegra-kbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 7797b47b78a0..2c69cf710259 100755
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -79,7 +79,7 @@ static int tegra_kbc_suspend(struct platform_device *pdev, pm_message_t state)
{
struct tegra_kbc *kbc = platform_get_drvdata(pdev);
- if (device_may_wakeup(&pdev->dev)) {
+ if (device_may_wakeup(&pdev->dev) && kbc->pdata->wake_cnt) {
tegra_kbc_setup_wakekeys(kbc, true);
enable_irq_wake(kbc->irq);
tegra_configure_dpd_kbc(kbc->wake_enable_rows, kbc->wake_enable_cols);
@@ -97,7 +97,7 @@ static int tegra_kbc_resume(struct platform_device *pdev)
{
struct tegra_kbc *kbc = platform_get_drvdata(pdev);
- if (device_may_wakeup(&pdev->dev)) {
+ if (device_may_wakeup(&pdev->dev) && kbc->pdata->wake_cnt) {
disable_irq_wake(kbc->irq);
tegra_kbc_setup_wakekeys(kbc, false);
tegra_configure_dpd_kbc(0, 0);