diff options
author | Seung-Woo Kim | 2013-05-22 14:14:17 +0200 |
---|---|---|
committer | Inki Dae | 2013-05-23 12:48:40 +0200 |
commit | dcb9a7c74acf59679a537e6fcc7a99c12353e7b8 (patch) | |
tree | a2bf7e385ecd479412595f87db6dcd7d966a2e02 /drivers/gpu/drm/exynos/exynos_hdmi.c | |
parent | drm/exynos: remove unnecessary devm_kfree (diff) | |
download | kernel-qcow2-linux-dcb9a7c74acf59679a537e6fcc7a99c12353e7b8.tar.gz kernel-qcow2-linux-dcb9a7c74acf59679a537e6fcc7a99c12353e7b8.tar.xz kernel-qcow2-linux-dcb9a7c74acf59679a537e6fcc7a99c12353e7b8.zip |
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_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 8d5dcd15e150..2f785325d6de 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -2046,7 +2046,7 @@ static int hdmi_probe(struct platform_device *pdev) hdata->hpd = gpio_get_value(hdata->hpd_gpio); - ret = request_threaded_irq(hdata->irq, NULL, + ret = devm_request_threaded_irq(dev, hdata->irq, NULL, hdmi_irq_thread, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, "hdmi", drm_hdmi_ctx); @@ -2075,16 +2075,11 @@ err_ddc: static int hdmi_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct exynos_drm_hdmi_context *ctx = platform_get_drvdata(pdev); - struct hdmi_context *hdata = ctx->ctx; DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__); pm_runtime_disable(dev); - free_irq(hdata->irq, ctx); - - /* hdmiphy i2c driver */ i2c_del_driver(&hdmiphy_driver); /* DDC i2c driver */ |