drm: cleanup buffer/map code
[deliverable/linux.git] / drivers / char / drm / drm_stub.c
index 068ca9a8b0b41d37f4f9b84b5defec0d5ba94fe6..95a976c96eb8303c9df9cc249c8c3d9e99cc999c 100644 (file)
@@ -75,6 +75,11 @@ static int drm_fill_in_dev(drm_device_t *dev, struct pci_dev *pdev, const struct
        dev->pci_func = PCI_FUNC(pdev->devfn);
        dev->irq = pdev->irq;
 
+       dev->maplist = drm_calloc(1, sizeof(*dev->maplist), DRM_MEM_MAPS);
+       if (dev->maplist == NULL)
+               return -ENOMEM;
+       INIT_LIST_HEAD(&dev->maplist->head);
+
        /* the DRM has 6 basic counters */
        dev->counters = 6;
        dev->types[0]  = _DRM_STAT_LOCK;
This page took 0.024229 seconds and 5 git commands to generate.