From: Andy Walls Date: Thu, 27 Jan 2011 05:10:42 +0000 (-0300) Subject: [media] lirc_zilog: Don't acquire the rx->buf_lock in the poll() function X-Git-Tag: v2.6.39-rc1~86^2~31 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915e54733de4a36742ab78b4768750ce72662f85;p=pandora-kernel.git [media] lirc_zilog: Don't acquire the rx->buf_lock in the poll() function There is no need to take the rx->buf_lock in the the poll() function as all the underling calls made on objects in the rx->buf lirc_buffer object are protected by spinlocks. Corrected a bad error return value in poll(): return POLLERR instead of -ENODEV. Added some comments to poll() for when, in the future, I forget what poll() and poll_wait() are supposed to do. [Jarod: minor debug spew fix] Signed-off-by: Andy Walls Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed