diff options
| -rw-r--r-- | drivers/media/video/compat_ioctl32.c | 4 | ||||
| -rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/compat_ioctl32.c b/drivers/media/video/compat_ioctl32.c index 99774c420689..5472d36d73ff 100644 --- a/drivers/media/video/compat_ioctl32.c +++ b/drivers/media/video/compat_ioctl32.c | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #include <linux/compat.h> | 2 | #include <linux/compat.h> |
| 3 | #include <linux/videodev.h> | 3 | #include <linux/videodev.h> |
| 4 | #include <linux/module.h> | 4 | #include <linux/module.h> |
| 5 | #include <linux/smp_lock.h> | ||
| 5 | 6 | ||
| 6 | #ifdef CONFIG_COMPAT | 7 | #ifdef CONFIG_COMPAT |
| 7 | struct video_tuner32 { | 8 | struct video_tuner32 { |
| @@ -307,9 +308,8 @@ long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) | |||
| 307 | case _IOR('v' , BASE_VIDIOCPRIVATE+7, int): | 308 | case _IOR('v' , BASE_VIDIOCPRIVATE+7, int): |
| 308 | ret = native_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); | 309 | ret = native_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); |
| 309 | break; | 310 | break; |
| 310 | |||
| 311 | return ret; | ||
| 312 | } | 311 | } |
| 312 | return ret; | ||
| 313 | } | 313 | } |
| 314 | #else | 314 | #else |
| 315 | long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) | 315 | long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) |
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index 0cfe75416ec6..6d32bd64ce55 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
| @@ -126,7 +126,7 @@ u32 em28xx_request_buffers(struct em28xx *dev, u32 count) | |||
| 126 | const size_t imagesize = PAGE_ALIGN(dev->frame_size); /*needs to be page aligned cause the buffers can be mapped individually! */ | 126 | const size_t imagesize = PAGE_ALIGN(dev->frame_size); /*needs to be page aligned cause the buffers can be mapped individually! */ |
| 127 | void *buff = NULL; | 127 | void *buff = NULL; |
| 128 | u32 i; | 128 | u32 i; |
| 129 | em28xx_coredbg("requested %i buffers with size %zd", count, imagesize); | 129 | em28xx_coredbg("requested %i buffers with size %zi", count, imagesize); |
| 130 | if (count > EM28XX_NUM_FRAMES) | 130 | if (count > EM28XX_NUM_FRAMES) |
| 131 | count = EM28XX_NUM_FRAMES; | 131 | count = EM28XX_NUM_FRAMES; |
| 132 | 132 | ||
