From: Russell King Subject: [PATCH RFC 13/46] imx-drm: imx-hdmi: get rid of pointless fb_reg Date: Thu, 02 Jan 2014 21:26:52 +0000 Message-ID: References: <20140102212528.GD7383@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140102212528.GD7383@n2100.arm.linux.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: driverdev-devel-bounces@linuxdriverproject.org To: David Airlie , Greg Kroah-Hartman , Sascha Hauer , Shawn Guo Cc: devel@driverdev.osuosl.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org List-Id: dri-devel@lists.freedesktop.org fb_reg provides no real benefit to the driver: imx_hdmi_fb_registered() will never be called multiple times. Let's get rid of this. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-hdmi.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c index 0cba5d4a9966..267d3c9114c6 100644 --- a/drivers/staging/imx-drm/imx-hdmi.c +++ b/drivers/staging/imx-drm/imx-hdmi.c @@ -130,7 +130,6 @@ struct imx_hdmi { int vic; u8 edid[HDMI_EDID_LEN]; - bool fb_reg; bool cable_plugin; bool phy_enabled; @@ -1451,9 +1450,6 @@ static int imx_hdmi_fb_registered(struct imx_hdmi *hdmi) { int ret; - if (hdmi->fb_reg) - return 0; - ret = clk_prepare_enable(hdmi->iahb_clk); if (ret) return ret; @@ -1474,8 +1470,6 @@ static int imx_hdmi_fb_registered(struct imx_hdmi *hdmi) /* Unmute interrupts */ hdmi_writeb(hdmi, ~HDMI_IH_PHY_STAT0_HPD, HDMI_IH_MUTE_PHY_STAT0); - hdmi->fb_reg = true; - clk_disable_unprepare(hdmi->iahb_clk); return 0; -- 1.7.4.4