diff options
Diffstat (limited to 'drivers/media/radio/radio-tea5777.c')
-rw-r--r-- | drivers/media/radio/radio-tea5777.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-tea5777.c b/drivers/media/radio/radio-tea5777.c index c1a2ea6e87a3..4b5190d4fea5 100644 --- a/drivers/media/radio/radio-tea5777.c +++ b/drivers/media/radio/radio-tea5777.c | |||
@@ -397,6 +397,9 @@ static int vidioc_s_hw_freq_seek(struct file *file, void *fh, | |||
397 | if (a->tuner || a->wrap_around) | 397 | if (a->tuner || a->wrap_around) |
398 | return -EINVAL; | 398 | return -EINVAL; |
399 | 399 | ||
400 | if (file->f_flags & O_NONBLOCK) | ||
401 | return -EWOULDBLOCK; | ||
402 | |||
400 | if (rangelow || rangehigh) { | 403 | if (rangelow || rangehigh) { |
401 | for (i = 0; i < ARRAY_SIZE(bands); i++) { | 404 | for (i = 0; i < ARRAY_SIZE(bands); i++) { |
402 | if (i == BAND_AM && !tea->has_am) | 405 | if (i == BAND_AM && !tea->has_am) |