diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/davinci/vpif.c | 2 | ||||
-rw-r--r-- | drivers/media/video/m5mols/m5mols_capture.c | 1 | ||||
-rw-r--r-- | drivers/media/video/omap/omap_vout.c | 2 | ||||
-rw-r--r-- | drivers/media/video/omap24xxcam.c | 5 | ||||
-rw-r--r-- | drivers/media/video/videobuf2-memops.c | 1 |
5 files changed, 4 insertions, 7 deletions
diff --git a/drivers/media/video/davinci/vpif.c b/drivers/media/video/davinci/vpif.c index 9f3bfc1eb240..af9680273ff9 100644 --- a/drivers/media/video/davinci/vpif.c +++ b/drivers/media/video/davinci/vpif.c | |||
@@ -422,7 +422,7 @@ static int __init vpif_probe(struct platform_device *pdev) | |||
422 | if (!res) | 422 | if (!res) |
423 | return -ENOENT; | 423 | return -ENOENT; |
424 | 424 | ||
425 | res_len = res->end - res->start + 1; | 425 | res_len = resource_size(res); |
426 | 426 | ||
427 | res = request_mem_region(res->start, res_len, res->name); | 427 | res = request_mem_region(res->start, res_len, res->name); |
428 | if (!res) | 428 | if (!res) |
diff --git a/drivers/media/video/m5mols/m5mols_capture.c b/drivers/media/video/m5mols/m5mols_capture.c index d9471928369d..a45d8f098e02 100644 --- a/drivers/media/video/m5mols/m5mols_capture.c +++ b/drivers/media/video/m5mols/m5mols_capture.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
23 | #include <linux/regulator/consumer.h> | 23 | #include <linux/regulator/consumer.h> |
24 | #include <linux/videodev2.h> | 24 | #include <linux/videodev2.h> |
25 | #include <linux/version.h> | ||
26 | #include <media/v4l2-ctrls.h> | 25 | #include <media/v4l2-ctrls.h> |
27 | #include <media/v4l2-device.h> | 26 | #include <media/v4l2-device.h> |
28 | #include <media/v4l2-subdev.h> | 27 | #include <media/v4l2-subdev.h> |
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index 4d07c5844402..a647894d3a71 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c | |||
@@ -129,7 +129,7 @@ module_param(debug, bool, S_IRUGO); | |||
129 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 129 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
130 | 130 | ||
131 | /* list of image formats supported by OMAP2 video pipelines */ | 131 | /* list of image formats supported by OMAP2 video pipelines */ |
132 | const static struct v4l2_fmtdesc omap_formats[] = { | 132 | static const struct v4l2_fmtdesc omap_formats[] = { |
133 | { | 133 | { |
134 | /* Note: V4L2 defines RGB565 as: | 134 | /* Note: V4L2 defines RGB565 as: |
135 | * | 135 | * |
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c index f6626e87dbc5..69b60ba5dd7a 100644 --- a/drivers/media/video/omap24xxcam.c +++ b/drivers/media/video/omap24xxcam.c | |||
@@ -1768,14 +1768,13 @@ static int __devinit omap24xxcam_probe(struct platform_device *pdev) | |||
1768 | dev_err(cam->dev, "no mem resource?\n"); | 1768 | dev_err(cam->dev, "no mem resource?\n"); |
1769 | goto err; | 1769 | goto err; |
1770 | } | 1770 | } |
1771 | if (!request_mem_region(mem->start, (mem->end - mem->start) + 1, | 1771 | if (!request_mem_region(mem->start, resource_size(mem), pdev->name)) { |
1772 | pdev->name)) { | ||
1773 | dev_err(cam->dev, | 1772 | dev_err(cam->dev, |
1774 | "cannot reserve camera register I/O region\n"); | 1773 | "cannot reserve camera register I/O region\n"); |
1775 | goto err; | 1774 | goto err; |
1776 | } | 1775 | } |
1777 | cam->mmio_base_phys = mem->start; | 1776 | cam->mmio_base_phys = mem->start; |
1778 | cam->mmio_size = (mem->end - mem->start) + 1; | 1777 | cam->mmio_size = resource_size(mem); |
1779 | 1778 | ||
1780 | /* map the region */ | 1779 | /* map the region */ |
1781 | cam->mmio_base = (unsigned long) | 1780 | cam->mmio_base = (unsigned long) |
diff --git a/drivers/media/video/videobuf2-memops.c b/drivers/media/video/videobuf2-memops.c index 5370a3a7ee25..b03c3aea5bea 100644 --- a/drivers/media/video/videobuf2-memops.c +++ b/drivers/media/video/videobuf2-memops.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/mm.h> | 18 | #include <linux/mm.h> |
19 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
20 | #include <linux/file.h> | 20 | #include <linux/file.h> |
21 | #include <linux/slab.h> | ||
22 | 21 | ||
23 | #include <media/videobuf2-core.h> | 22 | #include <media/videobuf2-core.h> |
24 | #include <media/videobuf2-memops.h> | 23 | #include <media/videobuf2-memops.h> |