summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-10-04 10:45:05 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-10-04 10:45:05 -0300
commitf5b559da3979e3fba268f45c0dc99ffc4a0c1a9e (patch)
treec9372ae88749a6cee1c158721d0888421080d237 /linux
parentddb2adcf763334767c28c91c1917d4db1faa0d2d (diff)
downloadmediapointer-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')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 48569a792..5964b27f9 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -1001,7 +1001,7 @@ static int cinergyt2_suspend (struct usb_interface *intf, pm_message_t state)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
if (state > 0) {
#else
- if (state.event > PM_EVENT_ON) {
+ if (1) {
#endif
struct cinergyt2 *cinergyt2 = usb_get_intfdata (intf);