aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_meram.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/sh_mobile_meram.c')
-rw-r--r--drivers/video/sh_mobile_meram.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c
index 085c49ac99dd..2ce0d8f72e31 100644
--- a/drivers/video/sh_mobile_meram.c
+++ b/drivers/video/sh_mobile_meram.c
@@ -448,10 +448,6 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata,
448 const struct sh_mobile_meram_cfg *cfg, 448 const struct sh_mobile_meram_cfg *cfg,
449 unsigned int xres, unsigned int yres, 449 unsigned int xres, unsigned int yres,
450 unsigned int pixelformat, 450 unsigned int pixelformat,
451 unsigned long base_addr_y,
452 unsigned long base_addr_c,
453 unsigned long *icb_addr_y,
454 unsigned long *icb_addr_c,
455 unsigned int *pitch) 451 unsigned int *pitch)
456{ 452{
457 struct sh_mobile_meram_fb_cache *cache; 453 struct sh_mobile_meram_fb_cache *cache;
@@ -470,9 +466,8 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata,
470 priv = pdata->priv; 466 priv = pdata->priv;
471 pdev = pdata->pdev; 467 pdev = pdata->pdev;
472 468
473 dev_dbg(&pdev->dev, "registering %dx%d (%s) (y=%08lx, c=%08lx)", 469 dev_dbg(&pdev->dev, "registering %dx%d (%s)", xres, yres,
474 xres, yres, (!pixelformat) ? "yuv" : "rgb", 470 !pixelformat ? "yuv" : "rgb");
475 base_addr_y, base_addr_c);
476 471
477 /* we can't handle wider than 8192px */ 472 /* we can't handle wider than 8192px */
478 if (xres > 8192) { 473 if (xres > 8192) {
@@ -500,12 +495,6 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata,
500 meram_init(priv, &cache->planes[1], 2 * xres, (yres + 1) / 2, 495 meram_init(priv, &cache->planes[1], 2 * xres, (yres + 1) / 2,
501 &out_pitch); 496 &out_pitch);
502 497
503 meram_set_next_addr(priv, cache, base_addr_y, base_addr_c);
504 meram_get_next_icb_addr(pdata, cache, icb_addr_y, icb_addr_c);
505
506 dev_dbg(&pdev->dev, "registered - can access via y=%08lx, c=%08lx",
507 *icb_addr_y, *icb_addr_c);
508
509err: 498err:
510 mutex_unlock(&priv->lock); 499 mutex_unlock(&priv->lock);
511 return cache; 500 return cache;