diff options
Diffstat (limited to 'drivers/media/video/omap24xxcam.c')
-rw-r--r-- | drivers/media/video/omap24xxcam.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c index 69b60ba5dd7a..eb97bff7116f 100644 --- a/drivers/media/video/omap24xxcam.c +++ b/drivers/media/video/omap24xxcam.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/interrupt.h> | 31 | #include <linux/interrupt.h> |
32 | #include <linux/videodev2.h> | 32 | #include <linux/videodev2.h> |
33 | #include <linux/pci.h> /* needed for videobufs */ | 33 | #include <linux/pci.h> /* needed for videobufs */ |
34 | #include <linux/version.h> | ||
35 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
36 | #include <linux/clk.h> | 35 | #include <linux/clk.h> |
37 | #include <linux/io.h> | 36 | #include <linux/io.h> |
@@ -43,7 +42,7 @@ | |||
43 | 42 | ||
44 | #include "omap24xxcam.h" | 43 | #include "omap24xxcam.h" |
45 | 44 | ||
46 | #define OMAP24XXCAM_VERSION KERNEL_VERSION(0, 0, 0) | 45 | #define OMAP24XXCAM_VERSION "0.0.1" |
47 | 46 | ||
48 | #define RESET_TIMEOUT_NS 10000 | 47 | #define RESET_TIMEOUT_NS 10000 |
49 | 48 | ||
@@ -309,11 +308,11 @@ static int omap24xxcam_vbq_alloc_mmap_buffer(struct videobuf_buffer *vb) | |||
309 | order--; | 308 | order--; |
310 | 309 | ||
311 | /* try to allocate as many contiguous pages as possible */ | 310 | /* try to allocate as many contiguous pages as possible */ |
312 | page = alloc_pages(GFP_KERNEL | GFP_DMA, order); | 311 | page = alloc_pages(GFP_KERNEL, order); |
313 | /* if allocation fails, try to allocate smaller amount */ | 312 | /* if allocation fails, try to allocate smaller amount */ |
314 | while (page == NULL) { | 313 | while (page == NULL) { |
315 | order--; | 314 | order--; |
316 | page = alloc_pages(GFP_KERNEL | GFP_DMA, order); | 315 | page = alloc_pages(GFP_KERNEL, order); |
317 | if (page == NULL && !order) { | 316 | if (page == NULL && !order) { |
318 | err = -ENOMEM; | 317 | err = -ENOMEM; |
319 | goto out; | 318 | goto out; |
@@ -993,7 +992,6 @@ static int vidioc_querycap(struct file *file, void *fh, | |||
993 | 992 | ||
994 | strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); | 993 | strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); |
995 | strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); | 994 | strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); |
996 | cap->version = OMAP24XXCAM_VERSION; | ||
997 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 995 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
998 | 996 | ||
999 | return 0; | 997 | return 0; |
@@ -1888,6 +1886,7 @@ static void __exit omap24xxcam_cleanup(void) | |||
1888 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); | 1886 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); |
1889 | MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); | 1887 | MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); |
1890 | MODULE_LICENSE("GPL"); | 1888 | MODULE_LICENSE("GPL"); |
1889 | MODULE_VERSION(OMAP24XXCAM_VERSION); | ||
1891 | module_param(video_nr, int, 0); | 1890 | module_param(video_nr, int, 0); |
1892 | MODULE_PARM_DESC(video_nr, | 1891 | MODULE_PARM_DESC(video_nr, |
1893 | "Minor number for video device (-1 ==> auto assign)"); | 1892 | "Minor number for video device (-1 ==> auto assign)"); |