Misc, phantom, fix poll
authorJiri Slaby <jirislaby@gmail.com>
Tue, 29 Apr 2008 07:59:14 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:02 +0000 (08:06 -0700)
commit7d4f9f094b0a01ba199f97cd4a5f5609391a04f9
treea7eaaafa99a7e8b46a80f41afda61221902d1004
parent7e4e8e689fe90dd94bd76f9706d6cce580941ed5
Misc, phantom, fix poll

Return ERR even if there are pending data, but hw is not running.  Do not
decrement count in poll, do it in ioctl, where data are actually read.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/phantom.c