commit | d96bc380a50f1e89769d38dd9c5739be3cb014b2 | [log] [tgz] |
---|---|---|
author | Tian Tao <tiantao6@hisilicon.com> | Wed Dec 02 17:26:51 2020 +0800 |
committer | Tian Tao <tiantao6@hisilicon.com> | Thu Dec 03 03:57:15 2020 -0500 |
tree | e8fe3cddfba54821e44e069a0988ae04550f6613 | |
parent | 770729f77d232495a5ba52daf5df3ed5cf1e9edf [diff] [blame] |
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
diff --git a/include/drm/drm_irq.h b/include/drm/drm_irq.h index d77f6e6..631b22f 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