Skip to content

Commit 0b05dd6

Browse files
author
Thomas Zimmermann
committed
drm: Remove unused devm_drm_irq_install()
DRM IRQ helpers will become legacy. The function devm_drm_irq_install() is unused and won't be required later. Signed-off-by: Thomas Zimmermann <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 5226711 commit 0b05dd6

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

drivers/gpu/drm/drm_irq.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -209,38 +209,6 @@ int drm_irq_uninstall(struct drm_device *dev)
209209
}
210210
EXPORT_SYMBOL(drm_irq_uninstall);
211211

212-
static void devm_drm_irq_uninstall(void *data)
213-
{
214-
drm_irq_uninstall(data);
215-
}
216-
217-
/**
218-
* devm_drm_irq_install - install IRQ handler
219-
* @dev: DRM device
220-
* @irq: IRQ number to install the handler for
221-
*
222-
* devm_drm_irq_install is a help function of drm_irq_install.
223-
*
224-
* if the driver uses devm_drm_irq_install, there is no need
225-
* to call drm_irq_uninstall when the drm module get unloaded,
226-
* as this will done automagically.
227-
*
228-
* Returns:
229-
* Zero on success or a negative error code on failure.
230-
*/
231-
int devm_drm_irq_install(struct drm_device *dev, int irq)
232-
{
233-
int ret;
234-
235-
ret = drm_irq_install(dev, irq);
236-
if (ret)
237-
return ret;
238-
239-
return devm_add_action_or_reset(dev->dev,
240-
devm_drm_irq_uninstall, dev);
241-
}
242-
EXPORT_SYMBOL(devm_drm_irq_install);
243-
244212
#if IS_ENABLED(CONFIG_DRM_LEGACY)
245213
int drm_legacy_irq_control(struct drm_device *dev, void *data,
246214
struct drm_file *file_priv)

include/drm/drm_irq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ struct drm_device;
2828

2929
int drm_irq_install(struct drm_device *dev, int irq);
3030
int drm_irq_uninstall(struct drm_device *dev);
31-
int devm_drm_irq_install(struct drm_device *dev, int irq);
3231
#endif

0 commit comments

Comments
 (0)