From: Robby Cai Date: Tue, 12 Mar 2013 06:59:49 +0000 (+0800) Subject: ENGR00253849 EPDC: fix build warnings in epdc fb driver X-Git-Tag: v3.0.35-fsl~80 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2f171e427c771de037c8deaf63a128449df9b46b;p=karo-tx-linux.git ENGR00253849 EPDC: fix build warnings in epdc fb driver 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 --- diff --git a/drivers/video/mxc/mxc_epdc_fb.c b/drivers/video/mxc/mxc_epdc_fb.c index 3450a65eea60..743b084df8ca 100644 --- a/drivers/video/mxc/mxc_epdc_fb.c +++ b/drivers/video/mxc/mxc_epdc_fb.c @@ -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