From 000c8eb18ef7ee9cecb34909be52281ec88a5486 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Sat, 6 Nov 2004 16:41:24 +0000 Subject: Fix Linux build. Why won't this complile? extern int const foo; static struct drm_driver driver = { .var = foo }; error says foo is not constant --- linux-core/r128_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux-core/r128_drv.c') diff --git a/linux-core/r128_drv.c b/linux-core/r128_drv.c index 73be2027..160cc865 100644 --- a/linux-core/r128_drv.c +++ b/linux-core/r128_drv.c @@ -88,8 +88,7 @@ static struct drm_driver driver = { .get_reg_ofs = drm_core_get_reg_ofs, .postinit = postinit, .version = version, - .ioctls = ioctls, - .num_ioctls = DRM_ARRAY_SIZE(ioctls), + .ioctls = r128_ioctls, .dma_ioctl = r128_cce_buffers, .fops = { .owner = THIS_MODULE, @@ -116,6 +115,8 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __init r128_init(void) { + driver.num_ioctls = r128_max_ioctl; + return drm_init(&driver, pciidlist); } -- cgit v1.2.3