From 4b4df875b26bd08ae62f26b8ced6a050425752ac Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 9 Nov 2004 16:58:02 +0000 Subject: Fix more build problems on linux-core --- linux-core/i915_drv.c | 2 +- linux-core/mga_drv.c | 2 +- 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); } -- cgit v1.2.3