summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/via/via_map.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-25 19:55:31 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-12-22 03:33:20 +0400
commit77ee8f3825054f23b17e9c8f728f061defd86cdc (patch)
treeb4e9e7a68d77ae400adc06a3bf935b23666e9046 /drivers/gpu/drm/via/via_map.c
parent763240deb423c477b4d46c23e0b582099d4b8753 (diff)
downloadlinux-77ee8f3825054f23b17e9c8f728f061defd86cdc.tar.xz
drm/via: track user->memblock mapping with idr
Massive indirection through a hashtable for a simple key->pointer look-up actually just adds bloat. v2: Drop the misleading comment noted by Chris Wilson. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/via/via_map.c')
-rw-r--r--drivers/gpu/drm/via/via_map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/via_map.c b/drivers/gpu/drm/via/via_map.c
index 6cca9a709f7a..b09f6596f15f 100644
--- a/drivers/gpu/drm/via/via_map.c
+++ b/drivers/gpu/drm/via/via_map.c
@@ -104,6 +104,7 @@ int via_driver_load(struct drm_device *dev, unsigned long chipset)
dev_priv->chipset = chipset;
+ idr_init(&dev->object_name_idr);
ret = drm_sman_init(&dev_priv->sman, 2, 12, 8);
if (ret) {
kfree(dev_priv);