aspace = NULL;
        }
 
-       kms->id = msm_register_address_space(dev, aspace);
-       if (kms->id < 0) {
-               ret = kms->id;
-               dev_err(dev->dev, "failed to register mdp4 iommu: %d\n", ret);
-               goto fail;
-       }
-
        ret = modeset_init(mdp4_kms);
        if (ret) {
                dev_err(dev->dev, "modeset_init failed: %d\n", ret);
 
                aspace = NULL;;
        }
 
-       kms->id = msm_register_address_space(dev, aspace);
-       if (kms->id < 0) {
-               ret = kms->id;
-               dev_err(&pdev->dev, "failed to register mdp5 iommu: %d\n", ret);
-               goto fail;
-       }
-
        ret = modeset_init(mdp5_kms);
        if (ret) {
                dev_err(&pdev->dev, "modeset_init failed: %d\n", ret);
 
        .atomic_state_free = msm_atomic_state_free,
 };
 
-#include "msm_gem.h"  /* temporary */
-int msm_register_address_space(struct drm_device *dev,
-               struct msm_gem_address_space *aspace)
-{
-       struct msm_drm_private *priv = dev->dev_private;
-
-       if (WARN_ON(priv->num_aspaces >= ARRAY_SIZE(priv->aspace)))
-               return -EINVAL;
-
-       priv->aspace[priv->num_aspaces] = aspace;
-
-       aspace->id = priv->num_aspaces++;
-
-       return aspace->id;
-}
-
 #ifdef CONFIG_DRM_MSM_REGISTER_LOGGING
 static bool reglog = false;
 MODULE_PARM_DESC(reglog, "Enable register read/write logging");
 
        uint32_t pending_crtcs;
        wait_queue_head_t pending_crtcs_event;
 
-       /* Registered address spaces.. currently this is fixed per # of
-        * iommu's.  Ie. one for display block and one for gpu block.
-        * Eventually, to do per-process gpu pagetables, we'll want one
-        * of these per-process.
-        */
-       unsigned int num_aspaces;
-       struct msm_gem_address_space *aspace[NUM_DOMAINS];
-
        unsigned int num_planes;
        struct drm_plane *planes[16];
 
 void msm_atomic_state_clear(struct drm_atomic_state *state);
 void msm_atomic_state_free(struct drm_atomic_state *state);
 
-int msm_register_address_space(struct drm_device *dev,
-               struct msm_gem_address_space *aspace);
-
 void msm_gem_unmap_vma(struct msm_gem_address_space *aspace,
                struct msm_gem_vma *vma, struct sg_table *sgt);
 int msm_gem_map_vma(struct msm_gem_address_space *aspace,
 
        struct drm_mm mm;
        struct msm_mmu *mmu;
        struct kref kref;
-       int id;    /* temporary */
 };
 
 struct msm_gem_vma {
 
        } else {
                dev_info(drm->dev, "%s: no IOMMU, fallback to VRAM carveout!\n", name);
        }
-       gpu->id = msm_register_address_space(drm, gpu->aspace);
-
 
        /* Create ringbuffer: */
        mutex_lock(&drm->struct_mutex);
 
        int irq;
 
        struct msm_gem_address_space *aspace;
-       int id;
 
        /* Power Control: */
        struct regulator *gpu_reg, *gpu_cx;
 
        int irq;
 
        /* mapper-id used to request GEM buffer mapped for scanout: */
-       int id;
        struct msm_gem_address_space *aspace;
 };