Re: [PATCH 1/2] video: nuc900fb: fix compile error

From: Wan ZongShun
Date: Mon Jan 17 2011 - 03:40:12 EST


2011/1/17 Axel Lin <axel.lin@xxxxxxxxx>:
> >From a4bd940fa4d162f95e51e67c7ec4973b1d5b6866 Mon Sep 17 00:00:00 2001
> From: Axel Lin <axel.lin@xxxxxxxxx>
> Date: Mon, 17 Jan 2011 16:24:36 +0800
> Subject: [PATCH 1/2] video: nuc900fb: fix compile error
>
> This patch fixes below compile error:
>
> ÂCC Â Â Âdrivers/video/nuc900fb.o
> drivers/video/nuc900fb.c: In function 'nuc900fb_suspend':
> drivers/video/nuc900fb.c:726: error: too few arguments to function 'nuc900fb_stop_lcd'
> drivers/video/nuc900fb.c: In function 'nuc900fb_resume':
> drivers/video/nuc900fb.c:743: error: 'bfinfo' undeclared (first use in this function)
> drivers/video/nuc900fb.c:743: error: (Each undeclared identifier is reported only once
> drivers/video/nuc900fb.c:743: error: for each function it appears in.)
> make[2]: *** [drivers/video/nuc900fb.o] Error 1
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> ---
> Âdrivers/video/nuc900fb.c | Â Â4 ++--
> Â1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
> index 62498bd..29ef92f 100644
> --- a/drivers/video/nuc900fb.c
> +++ b/drivers/video/nuc900fb.c
> @@ -723,7 +723,7 @@ static int nuc900fb_suspend(struct platform_device *dev, pm_message_t state)
>    Âstruct fb_info   *fbinfo = platform_get_drvdata(dev);
> Â Â Â Âstruct nuc900fb_info *info = fbinfo->par;
>
> - Â Â Â nuc900fb_stop_lcd();
> + Â Â Â nuc900fb_stop_lcd(fbinfo);
> Â Â Â Âmsleep(1);
> Â Â Â Âclk_disable(info->clk);
> Â Â Â Âreturn 0;
> @@ -740,7 +740,7 @@ static int nuc900fb_resume(struct platform_device *dev)
> Â Â Â Âmsleep(1);
>
> Â Â Â Ânuc900fb_init_registers(fbinfo);
> - Â Â Â nuc900fb_activate_var(bfinfo);
> + Â Â Â nuc900fb_activate_var(fbinfo);
>
> Â Â Â Âreturn 0;
> Â}

Thanks for your patches.
Acked-by: Wan ZongShun <mcuos.com@xxxxxxxxx>
> --
> 1.7.2
>
>
>
>



--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900@xxxxxxxxxxxxxxxx
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/