aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-25 07:58:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 15:19:54 -0300
commit8b21eb17e749c9693eaea065f0eb95365006495c (patch)
tree151d781ab6994b1e985c7a9507e8f53a98289978 /drivers/media/radio
parentc93396e13576928a073154b5715761ff8a998368 (diff)
downloadlinux-linaro-stable-8b21eb17e749c9693eaea065f0eb95365006495c.tar.gz
[media] radio-isa: fix querycap capabilities code
The device_caps and capabilities fields were swapped. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-isa.c b/drivers/media/radio/radio-isa.c
index 84b7b9f4385e..fe0a4f85c422 100644
--- a/drivers/media/radio/radio-isa.c
+++ b/drivers/media/radio/radio-isa.c
@@ -51,8 +51,8 @@ static int radio_isa_querycap(struct file *file, void *priv,
strlcpy(v->card, isa->drv->card, sizeof(v->card));
snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name);
- v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
- v->device_caps = v->capabilities | V4L2_CAP_DEVICE_CAPS;
+ v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
+ v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS;
return 0;
}