From: Liu Ying Date: Tue, 24 Dec 2013 02:17:44 +0000 (+0800) Subject: staging: imx-drm: imx-tve: Fix a sparse warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7fc6cb2876ea8e3d07db02d8a9102d93ea9948c9;p=openwrt%2Fstaging%2Fblogic.git staging: imx-drm: imx-tve: Fix a sparse warning This patch declares the function of_get_tve_mode as a static one to fix this sparse warning: drivers/staging/imx-drm/imx-tve.c:563:11: warning: \ symbol 'of_get_tve_mode' was not declared. \ Should it be static? Acked-by: Shawn Guo Signed-off-by: Liu Ying Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/imx-tve.c b/drivers/staging/imx-drm/imx-tve.c index 2c44fef8d58b..9abc7ca8b6cf 100644 --- a/drivers/staging/imx-drm/imx-tve.c +++ b/drivers/staging/imx-drm/imx-tve.c @@ -560,7 +560,7 @@ static const char *imx_tve_modes[] = { [TVE_MODE_VGA] = "vga", }; -const int of_get_tve_mode(struct device_node *np) +static const int of_get_tve_mode(struct device_node *np) { const char *bm; int ret, i;