staging: imx-drm: imx-tve: Fix a sparse warning
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 24 Dec 2013 02:17:44 +0000 (10:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:40:47 +0000 (15:40 -0800)
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 <shawn.guo@linaro.org>
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-tve.c

index 2c44fef8d58b327df92e97667f0661c45e3e57d6..9abc7ca8b6cf78ad8dba66329352c341a7c369d7 100644 (file)
@@ -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;