mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 08:10:11 +01:00
replace instance of SA_SHIRQ with IRQF_SHARED
backwards compat added by airlied
This commit is contained in:
parent
caf0c481a6
commit
6a60b47d12
2 changed files with 5 additions and 1 deletions
|
|
@ -97,6 +97,10 @@
|
|||
#define __GFP_COMP 0
|
||||
#endif
|
||||
|
||||
#if !defined(IRQF_SHARED)
|
||||
#define IRQF_SHARED SA_SHIRQ
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
|
||||
static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t pgprot)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ static int drm_irq_install(drm_device_t * dev)
|
|||
|
||||
/* Install handler */
|
||||
if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED))
|
||||
sh_flags = SA_SHIRQ;
|
||||
sh_flags = IRQF_SHARED;
|
||||
|
||||
ret = request_irq(dev->irq, dev->driver->irq_handler,
|
||||
sh_flags, dev->devname, dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue