summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drm_ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h
index 945340c7..01604e75 100644
--- a/linux/drm_ioctl.h
+++ b/linux/drm_ioctl.h
@@ -48,7 +48,7 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
p.irq = 0;
goto out;
}
- if (!pci_enable_device(dev)) {
+ if (pci_enable_device(dev) != 0) {
DRM_ERROR("pci_enable_device failed for %d:%d:%d\n",
p.busnum, p.devnum, p.funcnum);
p.irq = 0;