drm/bridge: dw-hdmi: Fix return error path
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 27 Jan 2015 12:54:12 +0000 (10:54 -0200)
committerThierry Reding <treding@nvidia.com>
Wed, 28 Jan 2015 09:01:21 +0000 (10:01 +0100)
If devm_request_threaded_irq() fails we should jump to 'err_iahb' label that
will disable the clocks that were previously enabled.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/bridge/dw_hdmi.c

index 6ea00050417341a27f997cd84c39769c3387d8b3..cb1dbb1aca165baa0c018b44491da94c7de59b5f 100644 (file)
@@ -1649,7 +1649,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
                                        dw_hdmi_irq, IRQF_SHARED,
                                        dev_name(dev), hdmi);
        if (ret)
-               return ret;
+               goto err_iahb;
 
        /*
         * To prevent overflows in HDMI_IH_FC_STAT2, set the clk regenerator