diff mbox

sh_mobile_ceu_camera: Remove frame size page alignment

Message ID 20091209131624.8044.18187.sendpatchset@rxone.opensource.se (mailing list archive)
State Superseded
Headers show

Commit Message

Magnus Damm Dec. 9, 2009, 1:16 p.m. UTC
None
diff mbox

Patch

--- 0010/drivers/media/video/sh_mobile_ceu_camera.c
+++ work/drivers/media/video/sh_mobile_ceu_camera.c	2009-12-09 17:54:37.000000000 +0900
@@ -199,14 +199,13 @@  static int sh_mobile_ceu_videobuf_setup(
 	struct sh_mobile_ceu_dev *pcdev = ici->priv;
 	int bytes_per_pixel = (icd->current_fmt->depth + 7) >> 3;
 
-	*size = PAGE_ALIGN(icd->user_width * icd->user_height *
-			   bytes_per_pixel);
+	*size = icd->user_width * icd->user_height * bytes_per_pixel;
 
 	if (0 == *count)
 		*count = 2;
 
 	if (pcdev->video_limit) {
-		while (*size * *count > pcdev->video_limit)
+		while (PAGE_ALIGN(*size) * *count > pcdev->video_limit)
 			(*count)--;
 	}