Re: [RFC/RFT] serio - switch to using dev_pm_ops

From: Alan Jenkins
Date: Tue Jul 21 2009 - 17:48:21 EST


> drivers/input/serio/serio.c | 30 ++++++++++++++++--------------
> 1 files changed, 16 insertions(+), 14 deletions(-)

> - if (!serio->suspended && state.event == PM_EVENT_SUSPEND)
> - serio_cleanup(serio);
> -
> - serio->suspended = state.event == PM_EVENT_SUSPEND ||
> - state.event == PM_EVENT_FREEZE;

> - 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?

Regards
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/