Skip to content

Commit

Permalink
Input: samsung-keypad - don't synchronise with runtime PM put
Browse files Browse the repository at this point in the history
We don't actually care if the device has been runtime suspended immediately
so we can just drop the reference without waiting for any state change to
be implemented. This may allow us to avoid some suspend/resume cycles and
is a bit more friendly to the rest of the system.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Jan 23, 2012
1 parent 409e154 commit 69898e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/keyboard/samsung-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static irqreturn_t samsung_keypad_irq(int irq, void *dev_id)

} while (key_down && !keypad->stopped);

pm_runtime_put_sync(&keypad->pdev->dev);
pm_runtime_put(&keypad->pdev->dev);

return IRQ_HANDLED;
}
Expand All @@ -202,7 +202,7 @@ static void samsung_keypad_start(struct samsung_keypad *keypad)
/* KEYIFCOL reg clear. */
writel(0, keypad->base + SAMSUNG_KEYIFCOL);

pm_runtime_put_sync(&keypad->pdev->dev);
pm_runtime_put(&keypad->pdev->dev);
}

static void samsung_keypad_stop(struct samsung_keypad *keypad)
Expand Down Expand Up @@ -232,7 +232,7 @@ static void samsung_keypad_stop(struct samsung_keypad *keypad)
*/
enable_irq(keypad->irq);

pm_runtime_put_sync(&keypad->pdev->dev);
pm_runtime_put(&keypad->pdev->dev);
}

static int samsung_keypad_open(struct input_dev *input_dev)
Expand Down

0 comments on commit 69898e5

Please sign in to comment.