]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00223056 Fix HDMI build warning
authorSandor Yu <R01008@freescale.com>
Wed, 5 Sep 2012 05:26:50 +0000 (13:26 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:23 +0000 (08:35 +0200)
Fix HDMI build warning.
drivers/video/mxc_hdmi.c: In function 'mxc_hdmi_set_mode':
drivers/video/mxc_hdmi.c:1659: warning: assignment discards
 qualifiers from pointer target type
drivers/video/mxc_hdmi.c: At top level:
driver/video/mxc_hdmi.c:1398: warning: 'mxc_hdmi_enable_pins'
 defined but not used

Remove unused function mxc_hdmi_enable_pins() and mxc_hdmi_disable_pins()
from code. Fix defined but unused function build warning.
Added pointer conversion from const poniter to non-const pointer.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/video/mxc_hdmi.c

index e9c05477a055afb511b99b43ae0826f386e7b602..a45c347b7b9b8a3b4c226f38c13b4b882fb93197 100644 (file)
@@ -1394,28 +1394,6 @@ static int mxc_hdmi_read_edid(struct mxc_hdmi *hdmi)
        return HDMI_EDID_SUCCESS;
 }
 
-static void mxc_hdmi_enable_pins(struct mxc_hdmi *hdmi)
-{
-       struct fsl_mxc_hdmi_platform_data *plat = hdmi->pdev->dev.platform_data;
-
-       dev_dbg(&hdmi->pdev->dev, "%s\n", __func__);
-
-       /* Enable pins to HDMI */
-       if (plat->enable_pins)
-               plat->enable_pins();
-}
-
-static void mxc_hdmi_disable_pins(struct mxc_hdmi *hdmi)
-{
-       struct fsl_mxc_hdmi_platform_data *plat = hdmi->pdev->dev.platform_data;
-
-       dev_dbg(&hdmi->pdev->dev, "%s\n", __func__);
-
-       /* Disable pins to HDMI */
-       if (plat->disable_pins)
-               plat->disable_pins();
-}
-
 static void mxc_hdmi_phy_disable(struct mxc_hdmi *hdmi)
 {
        dev_dbg(&hdmi->pdev->dev, "%s\n", __func__);
@@ -1656,7 +1634,7 @@ static void mxc_hdmi_set_mode(struct mxc_hdmi *hdmi)
                dev_dbg(&hdmi->pdev->dev,
                                "%s: Video mode same as previous\n", __func__);
                /* update fbi mode in case modelist is updated */
-               hdmi->fbi->mode = mode;
+               hdmi->fbi->mode = (struct fb_videomode *)mode;
                mxc_hdmi_phy_init(hdmi);
        } else {
                dev_dbg(&hdmi->pdev->dev, "%s: New video mode\n", __func__);
@@ -2297,8 +2275,6 @@ static void mxc_hdmi_disp_deinit(struct mxc_dispdrv_handle *disp)
 
        fb_unregister_client(&hdmi->nb);
 
-       mxc_hdmi_disable_pins(hdmi);
-
        clk_disable(hdmi->hdmi_isfr_clk);
        clk_put(hdmi->hdmi_isfr_clk);
        clk_disable(hdmi->hdmi_iahb_clk);