diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-09-15 18:00:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-17 17:10:53 -0400 |
commit | 9bfbd5cb72c9edb8504a4a7a0aa89cdb2fcb4845 (patch) | |
tree | b59f08475d3366e60e3c93538ad398905c4a74ec /drivers/gpu/drm/drm_irq.c | |
parent | e0f0754ff6128570dcf38032f5bfb1f195e5bbee (diff) |
drm: kill drm_device->irq
Like the last patch but adds a macro to get at the irq value instead of
dereferencing pdev directly. Should make things easier for the BSD guys and
if we ever support non-PCI devices.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index d0c13d954f52..4091b9e291f9 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -228,12 +228,9 @@ int drm_irq_install(struct drm_device *dev) | |||
228 | if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED)) | 228 | if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED)) |
229 | sh_flags = IRQF_SHARED; | 229 | sh_flags = IRQF_SHARED; |
230 | 230 | ||
231 | ret = request_irq(dev->pdev->irq, dev->driver->irq_handler, | 231 | ret = request_irq(drm_dev_to_irq(dev), dev->driver->irq_handler, |
232 | sh_flags, dev->devname, dev); | 232 | sh_flags, dev->devname, dev); |
233 | /* Expose the device irq number to drivers that want to export it for | 233 | |
234 | * whatever reason. | ||
235 | */ | ||
236 | dev->irq = dev->pdev->irq; | ||
237 | if (ret < 0) { | 234 | if (ret < 0) { |
238 | mutex_lock(&dev->struct_mutex); | 235 | mutex_lock(&dev->struct_mutex); |
239 | dev->irq_enabled = 0; | 236 | dev->irq_enabled = 0; |