From: Arnd Bergmann Date: Thu, 2 Jan 2014 12:07:53 +0000 (+0100) Subject: char: nwbutton: open-code interruptible_sleep_on X-Git-Tag: v3.14-rc1~152^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb831743f2b43253b0aec40f66a95fdcf8f178cc;p=pandora-kernel.git char: nwbutton: open-code interruptible_sleep_on The nwbutton driver uses interruptible_sleep_on to wait for buttons getting pressed after we enter the read() function, which is inherently racy and cannot be fixed by using wait_event without changing the driver's user space interface. Instead, this patch just uses an open-coded variant of the same interruptible_sleep_on() call, so the driver behavior doesn't change but we remove the sleep_on family from the kernel. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed