]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00253849 EPDC: fix build warnings in epdc fb driver
authorRobby Cai <R63905@freescale.com>
Tue, 12 Mar 2013 06:59:49 +0000 (14:59 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:57 +0000 (08:35 +0200)
This patch is to fix the following warnings:

drivers/video/mxc/mxc_epdc_fb.c:5062:2: warning: initialization from
incompatible pointer type [enabled by default]
drivers/video/mxc/mxc_epdc_fb.c:5062:2: warning: (near initialization for
'mxc_epdc_fb_driver.shutdown') [enabled by default]

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/video/mxc/mxc_epdc_fb.c

index 3450a65eea60bf7149b054f620bf2e8caa4b118e..743b084df8ca1a7ffbf1e30d36b44b5dec3e9557 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -5026,7 +5026,7 @@ static int mxc_epdc_fb_resume(struct platform_device *pdev)
        return 0;
 }
 
-static int mxc_epdc_fb_shutdown(struct platform_device *pdev)
+static void mxc_epdc_fb_shutdown(struct platform_device *pdev)
 {
        struct mxc_epdc_fb_data *fb_data = platform_get_drvdata(pdev);
 
@@ -5045,8 +5045,6 @@ static int mxc_epdc_fb_shutdown(struct platform_device *pdev)
 
        /* turn off the V3p3 */
        regulator_disable(fb_data->v3p3_regulator);
-
-       return 0;
 }
 #else
 #define mxc_epdc_fb_suspend    NULL