Skip to content

Commit

Permalink
drm: exynos: hdmi: fix interrupt handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomasz Stanislawski authored and Inki Dae committed Oct 5, 2012
1 parent c119ed0 commit 07c8bdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 07c8bdd

Please sign in to comment.