diff options
-rw-r--r-- | linux-core/mach64_drv.c | 2 | ||||
-rw-r--r-- | linux-core/sis_drv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/mach64_drv.c b/linux-core/mach64_drv.c index 17ba250c..5852c443 100644 --- a/linux-core/mach64_drv.c +++ b/linux-core/mach64_drv.c @@ -84,7 +84,6 @@ static struct drm_driver driver = { .postinit = postinit, .version = version, .ioctls = mach64_ioctls, - .num_ioctls = mach64_max_ioctl, .dma_ioctl = mach64_dma_buffers, .fops = { .owner = THIS_MODULE, @@ -111,6 +110,7 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __init mach64_init(void) { + driver.num_ioctls = mach64_max_ioctl; return drm_init(&driver, pciidlist); } diff --git a/linux-core/sis_drv.c b/linux-core/sis_drv.c index 70dd10e7..b38ae201 100644 --- a/linux-core/sis_drv.c +++ b/linux-core/sis_drv.c @@ -75,7 +75,6 @@ static struct drm_driver driver = { .postinit = postinit, .version = version, .ioctls = sis_ioctls, - .num_ioctls = sis_max_ioctl, .fops = { .owner = THIS_MODULE, .open = drm_open, @@ -100,6 +99,7 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __init sis_init(void) { + driver.num_ioctls = sis_max_ioctl; return drm_init(&driver, pciidlist); } |