aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx231xx
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r--drivers/media/video/cx231xx/cx231xx-417.c1
-rw-r--r--drivers/media/video/cx231xx/cx231xx-cards.c1
-rw-r--r--drivers/media/video/cx231xx/cx231xx-video.c6
3 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-417.c b/drivers/media/video/cx231xx/cx231xx-417.c
index f8f0e59cd583..d4327dab5a36 100644
--- a/drivers/media/video/cx231xx/cx231xx-417.c
+++ b/drivers/media/video/cx231xx/cx231xx-417.c
@@ -1686,7 +1686,6 @@ static struct v4l2_capability pvr_capability = {
1686 .capabilities = (V4L2_CAP_VIDEO_CAPTURE | 1686 .capabilities = (V4L2_CAP_VIDEO_CAPTURE |
1687 V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO | 1687 V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_RADIO |
1688 V4L2_CAP_STREAMING | V4L2_CAP_READWRITE), 1688 V4L2_CAP_STREAMING | V4L2_CAP_READWRITE),
1689 .reserved = {0, 0, 0, 0}
1690}; 1689};
1691static int vidioc_querycap(struct file *file, void *priv, 1690static int vidioc_querycap(struct file *file, void *priv,
1692 struct v4l2_capability *cap) 1691 struct v4l2_capability *cap)
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c
index 875a7ce94736..8ed460d692e0 100644
--- a/drivers/media/video/cx231xx/cx231xx-cards.c
+++ b/drivers/media/video/cx231xx/cx231xx-cards.c
@@ -861,7 +861,6 @@ void cx231xx_release_resources(struct cx231xx *dev)
861 kfree(dev->sliced_cc_mode.alt_max_pkt_size); 861 kfree(dev->sliced_cc_mode.alt_max_pkt_size);
862 kfree(dev->ts1_mode.alt_max_pkt_size); 862 kfree(dev->ts1_mode.alt_max_pkt_size);
863 kfree(dev); 863 kfree(dev);
864 dev = NULL;
865} 864}
866 865
867/* 866/*
diff --git a/drivers/media/video/cx231xx/cx231xx-video.c b/drivers/media/video/cx231xx/cx231xx-video.c
index 829a41b0c9ef..7f916f0685e9 100644
--- a/drivers/media/video/cx231xx/cx231xx-video.c
+++ b/drivers/media/video/cx231xx/cx231xx-video.c
@@ -2319,8 +2319,7 @@ static int cx231xx_v4l2_close(struct file *filp)
2319 if (dev->state & DEV_DISCONNECTED) { 2319 if (dev->state & DEV_DISCONNECTED) {
2320 if (atomic_read(&dev->devlist_count) > 0) { 2320 if (atomic_read(&dev->devlist_count) > 0) {
2321 cx231xx_release_resources(dev); 2321 cx231xx_release_resources(dev);
2322 kfree(dev); 2322 fh->dev = NULL;
2323 dev = NULL;
2324 return 0; 2323 return 0;
2325 } 2324 }
2326 return 0; 2325 return 0;
@@ -2350,8 +2349,7 @@ static int cx231xx_v4l2_close(struct file *filp)
2350 free the remaining resources */ 2349 free the remaining resources */
2351 if (dev->state & DEV_DISCONNECTED) { 2350 if (dev->state & DEV_DISCONNECTED) {
2352 cx231xx_release_resources(dev); 2351 cx231xx_release_resources(dev);
2353 kfree(dev); 2352 fh->dev = NULL;
2354 dev = NULL;
2355 return 0; 2353 return 0;
2356 } 2354 }
2357 2355