From 3a61e9f96ce50101f05a5ca2cb0e34b2aa001b55 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 7 Aug 2005 05:37:25 +0000 Subject: make some functions static in the savage drm driver --- linux-core/savage_drv.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'linux-core') diff --git a/linux-core/savage_drv.c b/linux-core/savage_drv.c index be54bd47..5c7cdd32 100644 --- a/linux-core/savage_drv.c +++ b/linux-core/savage_drv.c @@ -34,12 +34,8 @@ static struct pci_device_id pciidlist[] = { savage_PCI_IDS }; -static drm_ioctl_desc_t ioctls[] = { - [DRM_IOCTL_NR(DRM_SAVAGE_BCI_INIT)] = {savage_bci_init, 1, 1, 1}, - [DRM_IOCTL_NR(DRM_SAVAGE_BCI_CMDBUF)] = {savage_bci_cmdbuf, 1, 0, 0}, - [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_EMIT)] = {savage_bci_event_emit, 1, 0, 0}, - [DRM_IOCTL_NR(DRM_SAVAGE_BCI_EVENT_WAIT)] = {savage_bci_event_wait, 1, 0, 0}, -}; +extern drm_ioctl_desc_t savage_ioctls[]; +extern int savage_max_ioctl; static int probe(struct pci_dev *pdev, const struct pci_device_id *ent); static struct drm_driver driver = { @@ -54,8 +50,7 @@ static struct drm_driver driver = { .reclaim_buffers = savage_reclaim_buffers, .get_map_ofs = drm_core_get_map_ofs, .get_reg_ofs = drm_core_get_reg_ofs, - .ioctls = ioctls, - .num_ioctls = DRM_ARRAY_SIZE(ioctls), + .ioctls = savage_ioctls, .dma_ioctl = savage_bci_buffers, .fops = { .owner = THIS_MODULE, @@ -88,6 +83,7 @@ static int probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __init savage_init(void) { + driver.num_ioctls = savage_max_ioctl; return drm_init(&driver, pciidlist); } -- cgit v1.2.3