Re: [RFC/RFT] serio - switch to using dev_pm_ops
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2009-07-22 16:38:39
Also in:
lkml
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2009-07-22 16:38:39
Also in:
lkml
On Tue, Jul 21, 2009 at 10:48:05PM +0100, Alan Jenkins wrote:
quoted
drivers/input/serio/serio.c | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-)quoted
- if (!serio->suspended && state.event == PM_EVENT_SUSPEND) - serio_cleanup(serio); - - serio->suspended = state.event == PM_EVENT_SUSPEND || - state.event == PM_EVENT_FREEZE;quoted
- if (serio->suspended) { - serio->suspended = false; - serio_queue_event(serio, NULL, SERIO_RECONNECT_PORT); - }It looks like you should be able to remove the suspended field of struct serio. Or is it used somewhere else?
No, it is not needed now, thanks for noticing. -- Dmitry