diff options
Diffstat (limited to 'arch/mips/kernel/rtlx.c')
-rw-r--r-- | arch/mips/kernel/rtlx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 88f7b50d541c..93c070b41b0d 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
@@ -252,12 +252,12 @@ int rtlx_release(int index) | |||
252 | 252 | ||
253 | unsigned int rtlx_read_poll(int index, int can_sleep) | 253 | unsigned int rtlx_read_poll(int index, int can_sleep) |
254 | { | 254 | { |
255 | struct rtlx_channel *chan; | 255 | struct rtlx_channel *chan; |
256 | 256 | ||
257 | if (rtlx == NULL) | 257 | if (rtlx == NULL) |
258 | return 0; | 258 | return 0; |
259 | 259 | ||
260 | chan = &rtlx->channel[index]; | 260 | chan = &rtlx->channel[index]; |
261 | 261 | ||
262 | /* data available to read? */ | 262 | /* data available to read? */ |
263 | if (chan->lx_read == chan->lx_write) { | 263 | if (chan->lx_read == chan->lx_write) { |
@@ -446,8 +446,8 @@ static ssize_t file_write(struct file *file, const char __user * buffer, | |||
446 | return -EAGAIN; | 446 | return -EAGAIN; |
447 | 447 | ||
448 | __wait_event_interruptible(channel_wqs[minor].rt_queue, | 448 | __wait_event_interruptible(channel_wqs[minor].rt_queue, |
449 | rtlx_write_poll(minor), | 449 | rtlx_write_poll(minor), |
450 | ret); | 450 | ret); |
451 | if (ret) | 451 | if (ret) |
452 | return ret; | 452 | return ret; |
453 | } | 453 | } |
@@ -457,11 +457,11 @@ static ssize_t file_write(struct file *file, const char __user * buffer, | |||
457 | 457 | ||
458 | static const struct file_operations rtlx_fops = { | 458 | static const struct file_operations rtlx_fops = { |
459 | .owner = THIS_MODULE, | 459 | .owner = THIS_MODULE, |
460 | .open = file_open, | 460 | .open = file_open, |
461 | .release = file_release, | 461 | .release = file_release, |
462 | .write = file_write, | 462 | .write = file_write, |
463 | .read = file_read, | 463 | .read = file_read, |
464 | .poll = file_poll, | 464 | .poll = file_poll, |
465 | .llseek = noop_llseek, | 465 | .llseek = noop_llseek, |
466 | }; | 466 | }; |
467 | 467 | ||