|
@@ -69,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)
|
|
static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
|
|
{
|
|
{
|
|
struct posix_clock *clk = get_posix_clock(fp);
|
|
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)
|
|
if (clk->ops.poll)
|
|
result = clk->ops.poll(clk, fp, wait);
|
|
result = clk->ops.poll(clk, fp, wait);
|