summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2020-12-02 17:26:51 +0800
committerTian Tao <tiantao6@hisilicon.com>2020-12-03 03:57:15 -0500
commitd96bc380a50f1e89769d38dd9c5739be3cb014b2 (patch)
treee8fe3cddfba54821e44e069a0988ae04550f6613 /include
parent770729f77d232495a5ba52daf5df3ed5cf1e9edf (diff)
downloadlinux-d96bc380a50f1e89769d38dd9c5739be3cb014b2.tar.bz2
drm/irq: Add the new api to install irq
Add new api devm_drm_irq_install() to register interrupts, no need to call drm_irq_uninstall() when the drm module is removed. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/1606901212-8214-3-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_irq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_irq.h b/include/drm/drm_irq.h
index d77f6e65b1c6..631b22f9757d 100644
--- a/include/drm/drm_irq.h
+++ b/include/drm/drm_irq.h
@@ -28,5 +28,5 @@ struct drm_device;
int drm_irq_install(struct drm_device *dev, int irq);
int drm_irq_uninstall(struct drm_device *dev);
-
+int devm_drm_irq_install(struct drm_device *dev, int irq);
#endif