summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/i915_drv.c2
-rw-r--r--linux-core/mga_drv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/i915_drv.c b/linux-core/i915_drv.c
index 32694fc3..b033737f 100644
--- a/linux-core/i915_drv.c
+++ b/linux-core/i915_drv.c
@@ -70,7 +70,6 @@ static struct drm_driver driver = {
.postinit = postinit,
.version = version,
.ioctls = i915_ioctls,
- .num_ioctls = i915_max_ioctl,
.fops = {
.owner = THIS_MODULE,
.open = drm_open,
@@ -95,6 +94,7 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent)
static int __init i915_init(void)
{
+ driver.num_ioctls = i915_max_ioctl;
return drm_init(&driver, pciidlist);
}
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c
index 7cd31ad9..bdb591ee 100644
--- a/linux-core/mga_drv.c
+++ b/linux-core/mga_drv.c
@@ -93,7 +93,6 @@ static struct drm_driver driver = {
.postinit = postinit,
.version = version,
.ioctls = mga_ioctls,
- .num_ioctls = mga_max_ioctl,
.dma_ioctl = mga_dma_buffers,
.fops = {
.owner = THIS_MODULE,
@@ -120,6 +119,7 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent)
static int __init mga_init(void)
{
+ driver.num_ioctls = mga_max_ioctl;
return drm_init(&driver, pciidlist);
}