From: Seung-Woo Kim Date: Wed, 5 Oct 2016 07:26:11 +0000 (+0900) Subject: drm/exynos/hdmi: remove unused hdmiphy_poweron() X-Git-Tag: submit/tizen/20161010.025055~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F90968%2F1;p=platform%2Fkernel%2Flinux-exynos.git drm/exynos/hdmi: remove unused hdmiphy_poweron() The function hdmiphy_poweron() is not used anymore, so this patch removes it. This patch fixes following build warning. drivers/gpu/drm/exynos/exynos_hdmi.c:1897:13: warning: 'hdmiphy_poweron' defined but not used [-Wunused-function] static void hdmiphy_poweron(struct hdmi_context *hdata) ^ Change-Id: I4c51b45becf8f52ef85020c7e1628d7baad90670 Signed-off-by: Seung-Woo Kim --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 9f099a078d40..3e526ccdc7e7 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1894,26 +1894,6 @@ static void hdmiphy_conf_reset(struct hdmi_context *hdata) usleep_range(10000, 12000); } -static void hdmiphy_poweron(struct hdmi_context *hdata) -{ - if (hdata->type == HDMI_TYPE13) - return; - - DRM_DEBUG_KMS("\n"); - - /* For PHY Mode Setting */ - hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, - HDMI_PHY_ENABLE_MODE_SET); - /* Phy Power On */ - hdmiphy_reg_writeb(hdata, HDMIPHY_POWER, - HDMI_PHY_POWER_ON); - /* For PHY Mode Setting */ - hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, - HDMI_PHY_DISABLE_MODE_SET); - /* PHY SW Reset */ - hdmiphy_conf_reset(hdata); -} - static void hdmiphy_poweroff(struct hdmi_context *hdata) { if (!hdata->phy_enabled)