diff options
Diffstat (limited to 'drivers/media/video/davinci/vpfe_capture.c')
-rw-r--r-- | drivers/media/video/davinci/vpfe_capture.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/davinci/vpfe_capture.c b/drivers/media/video/davinci/vpfe_capture.c index c3916a42668e..de22bc9faf21 100644 --- a/drivers/media/video/davinci/vpfe_capture.c +++ b/drivers/media/video/davinci/vpfe_capture.c | |||
@@ -70,7 +70,6 @@ | |||
70 | #include <linux/init.h> | 70 | #include <linux/init.h> |
71 | #include <linux/platform_device.h> | 71 | #include <linux/platform_device.h> |
72 | #include <linux/interrupt.h> | 72 | #include <linux/interrupt.h> |
73 | #include <linux/version.h> | ||
74 | #include <media/v4l2-common.h> | 73 | #include <media/v4l2-common.h> |
75 | #include <linux/io.h> | 74 | #include <linux/io.h> |
76 | #include <media/davinci/vpfe_capture.h> | 75 | #include <media/davinci/vpfe_capture.h> |
@@ -1967,7 +1966,6 @@ static __init int vpfe_probe(struct platform_device *pdev) | |||
1967 | vfd->release = video_device_release; | 1966 | vfd->release = video_device_release; |
1968 | vfd->fops = &vpfe_fops; | 1967 | vfd->fops = &vpfe_fops; |
1969 | vfd->ioctl_ops = &vpfe_ioctl_ops; | 1968 | vfd->ioctl_ops = &vpfe_ioctl_ops; |
1970 | vfd->minor = -1; | ||
1971 | vfd->tvnorms = 0; | 1969 | vfd->tvnorms = 0; |
1972 | vfd->current_norm = V4L2_STD_PAL; | 1970 | vfd->current_norm = V4L2_STD_PAL; |
1973 | vfd->v4l2_dev = &vpfe_dev->v4l2_dev; | 1971 | vfd->v4l2_dev = &vpfe_dev->v4l2_dev; |
@@ -2071,7 +2069,7 @@ probe_out_video_unregister: | |||
2071 | probe_out_v4l2_unregister: | 2069 | probe_out_v4l2_unregister: |
2072 | v4l2_device_unregister(&vpfe_dev->v4l2_dev); | 2070 | v4l2_device_unregister(&vpfe_dev->v4l2_dev); |
2073 | probe_out_video_release: | 2071 | probe_out_video_release: |
2074 | if (vpfe_dev->video_dev->minor == -1) | 2072 | if (!video_is_registered(vpfe_dev->video_dev)) |
2075 | video_device_release(vpfe_dev->video_dev); | 2073 | video_device_release(vpfe_dev->video_dev); |
2076 | probe_out_release_irq: | 2074 | probe_out_release_irq: |
2077 | free_irq(vpfe_dev->ccdc_irq0, vpfe_dev); | 2075 | free_irq(vpfe_dev->ccdc_irq0, vpfe_dev); |
@@ -2091,7 +2089,7 @@ probe_free_dev_mem: | |||
2091 | /* | 2089 | /* |
2092 | * vpfe_remove : It un-register device from V4L2 driver | 2090 | * vpfe_remove : It un-register device from V4L2 driver |
2093 | */ | 2091 | */ |
2094 | static int vpfe_remove(struct platform_device *pdev) | 2092 | static int __devexit vpfe_remove(struct platform_device *pdev) |
2095 | { | 2093 | { |
2096 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); | 2094 | struct vpfe_device *vpfe_dev = platform_get_drvdata(pdev); |
2097 | struct resource *res; | 2095 | struct resource *res; |