drm: exynos: hdmi: fix interrupt handling
authorTomasz Stanislawski <t.stanislaws@samsung.com>
Thu, 4 Oct 2012 15:18:45 +0000 (20:48 +0530)
committerInki Dae <inki.dae@samsung.com>
Fri, 5 Oct 2012 10:14:53 +0000 (19:14 +0900)
This patch fixes 'unsigned < 0' check in probe. Moreover it
releases an interrupt at remove.

Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index b3a802b5a12904165bc467d93d0bcbffb3fe4807..3902917cbd030a26a3c971cbc1e4075fb4ffe1ae 100644 (file)
@@ -64,8 +64,8 @@ struct hdmi_context {
        struct mutex                    hdmi_mutex;
 
        void __iomem                    *regs;
-       unsigned int                    external_irq;
-       unsigned int                    internal_irq;
+       int                             external_irq;
+       int                             internal_irq;
 
        struct i2c_client               *ddc_port;
        struct i2c_client               *hdmiphy_port;
@@ -2424,6 +2424,7 @@ static int __devexit hdmi_remove(struct platform_device *pdev)
        pm_runtime_disable(dev);
 
        free_irq(hdata->internal_irq, hdata);
+       free_irq(hdata->external_irq, hdata);
 
        hdmi_resources_cleanup(hdata);