diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2013-05-22 08:14:17 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-05-23 06:48:40 -0400 |
commit | dcb9a7c74acf59679a537e6fcc7a99c12353e7b8 (patch) | |
tree | a2bf7e385ecd479412595f87db6dcd7d966a2e02 /drivers/gpu/drm/exynos/exynos_drm_gsc.c | |
parent | 7a1b00e0728ff20d6c8e2d6335da05d13d03ef74 (diff) |
drm/exynos: replace request_threaded_irq with devm function
devm_request_threaded_irq is used instead of request_threaded_irq
and free_irq is removed.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gsc.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 98032d6c62c3..762f40d548b7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c | |||
@@ -1704,7 +1704,7 @@ static int gsc_probe(struct platform_device *pdev) | |||
1704 | } | 1704 | } |
1705 | 1705 | ||
1706 | ctx->irq = res->start; | 1706 | ctx->irq = res->start; |
1707 | ret = request_threaded_irq(ctx->irq, NULL, gsc_irq_handler, | 1707 | ret = devm_request_threaded_irq(dev, ctx->irq, NULL, gsc_irq_handler, |
1708 | IRQF_ONESHOT, "drm_gsc", ctx); | 1708 | IRQF_ONESHOT, "drm_gsc", ctx); |
1709 | if (ret < 0) { | 1709 | if (ret < 0) { |
1710 | dev_err(dev, "failed to request irq.\n"); | 1710 | dev_err(dev, "failed to request irq.\n"); |
@@ -1725,7 +1725,7 @@ static int gsc_probe(struct platform_device *pdev) | |||
1725 | ret = gsc_init_prop_list(ippdrv); | 1725 | ret = gsc_init_prop_list(ippdrv); |
1726 | if (ret < 0) { | 1726 | if (ret < 0) { |
1727 | dev_err(dev, "failed to init property list.\n"); | 1727 | dev_err(dev, "failed to init property list.\n"); |
1728 | goto err_get_irq; | 1728 | return ret; |
1729 | } | 1729 | } |
1730 | 1730 | ||
1731 | DRM_DEBUG_KMS("%s:id[%d]ippdrv[0x%x]\n", __func__, ctx->id, | 1731 | DRM_DEBUG_KMS("%s:id[%d]ippdrv[0x%x]\n", __func__, ctx->id, |
@@ -1749,8 +1749,6 @@ static int gsc_probe(struct platform_device *pdev) | |||
1749 | 1749 | ||
1750 | err_ippdrv_register: | 1750 | err_ippdrv_register: |
1751 | pm_runtime_disable(dev); | 1751 | pm_runtime_disable(dev); |
1752 | err_get_irq: | ||
1753 | free_irq(ctx->irq, ctx); | ||
1754 | return ret; | 1752 | return ret; |
1755 | } | 1753 | } |
1756 | 1754 | ||
@@ -1766,8 +1764,6 @@ static int gsc_remove(struct platform_device *pdev) | |||
1766 | pm_runtime_set_suspended(dev); | 1764 | pm_runtime_set_suspended(dev); |
1767 | pm_runtime_disable(dev); | 1765 | pm_runtime_disable(dev); |
1768 | 1766 | ||
1769 | free_irq(ctx->irq, ctx); | ||
1770 | |||
1771 | return 0; | 1767 | return 0; |
1772 | } | 1768 | } |
1773 | 1769 | ||