diff options
author | Tomasz Stanislawski <t.stanislaws@samsung.com> | 2012-10-04 11:18:45 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-10-05 06:14:53 -0400 |
commit | 07c8bdd79c7d7cc4142ba01a97a06133a429fe77 (patch) | |
tree | 3c7f10fc865b26b9afe6c98ca09895c217c10478 /drivers/gpu/drm | |
parent | c119ed05b6b82f5e70725e63e844a6487a748b95 (diff) |
drm: exynos: hdmi: fix interrupt handling
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index b3a802b5a12..3902917cbd0 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -64,8 +64,8 @@ struct hdmi_context { | |||
64 | struct mutex hdmi_mutex; | 64 | struct mutex hdmi_mutex; |
65 | 65 | ||
66 | void __iomem *regs; | 66 | void __iomem *regs; |
67 | unsigned int external_irq; | 67 | int external_irq; |
68 | unsigned int internal_irq; | 68 | int internal_irq; |
69 | 69 | ||
70 | struct i2c_client *ddc_port; | 70 | struct i2c_client *ddc_port; |
71 | struct i2c_client *hdmiphy_port; | 71 | struct i2c_client *hdmiphy_port; |
@@ -2424,6 +2424,7 @@ static int __devexit hdmi_remove(struct platform_device *pdev) | |||
2424 | pm_runtime_disable(dev); | 2424 | pm_runtime_disable(dev); |
2425 | 2425 | ||
2426 | free_irq(hdata->internal_irq, hdata); | 2426 | free_irq(hdata->internal_irq, hdata); |
2427 | free_irq(hdata->external_irq, hdata); | ||
2427 | 2428 | ||
2428 | hdmi_resources_cleanup(hdata); | 2429 | hdmi_resources_cleanup(hdata); |
2429 | 2430 | ||