diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-04 10:45:05 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-04 10:45:05 -0300 |
commit | f5b559da3979e3fba268f45c0dc99ffc4a0c1a9e (patch) | |
tree | c9372ae88749a6cee1c158721d0888421080d237 /linux/drivers/media/radio/miropcm20-rds-core.h | |
parent | ddb2adcf763334767c28c91c1917d4db1faa0d2d (diff) | |
download | mediapointer-dvb-s2-f5b559da3979e3fba268f45c0dc99ffc4a0c1a9e.tar.gz mediapointer-dvb-s2-f5b559da3979e3fba268f45c0dc99ffc4a0c1a9e.tar.bz2 |
fix broken/dubious driver suspend() methods
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Applied the rellevant v4l-dvb part of this patch from
David Brownell <dbrownell@users.sourceforge.net>
kernel-sync:
Original description:
Small driver suspend() fixes in preparation for the PRETHAW events:
- Only compare message events for equality against PM_EVENT_* codes;
not against integers, or using greater/less-than comparisons.
(PM_EVENT_* should really become a __bitwise thing.)
- Explicitly test for SUSPEND events (rather than not-something-else)
before suspending devices.
- Removes more of the confusion between a pm_message_t (wraps event code)
and a "state" ... suspend() originally took a target system state.
These updates are correct and appropriate even without new PM_EVENT codes.
benh: "I think in the Mesh case, we should handle the freeze case as well or
we might get wild DMA."
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/radio/miropcm20-rds-core.h')
0 files changed, 0 insertions, 0 deletions