git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: serial: ch341: fix open error handling
[pandora-kernel.git]
/
kernel
/
time
/
posix-clock.c
diff --git
a/kernel/time/posix-clock.c
b/kernel/time/posix-clock.c
index
c340ca6
..
9cff0ab
100644
(file)
--- a/
kernel/time/posix-clock.c
+++ b/
kernel/time/posix-clock.c
@@
-18,6
+18,7
@@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/device.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/device.h>
+#include <linux/export.h>
#include <linux/file.h>
#include <linux/posix-clock.h>
#include <linux/slab.h>
#include <linux/file.h>
#include <linux/posix-clock.h>
#include <linux/slab.h>
@@
-68,10
+69,10
@@
static ssize_t posix_clock_read(struct file *fp, char __user *buf,
static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
{
struct posix_clock *clk = get_posix_clock(fp);
static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
{
struct posix_clock *clk = get_posix_clock(fp);
- int result = 0;
+
unsigned
int result = 0;
if (!clk)
if (!clk)
- return
-ENODEV
;
+ return
POLLERR
;
if (clk->ops.poll)
result = clk->ops.poll(clk, fp, wait);
if (clk->ops.poll)
result = clk->ops.poll(clk, fp, wait);