else
                ggtt->gsm = ioremap_wc(phys_addr, size);
        if (!ggtt->gsm) {
-               DRM_ERROR("Failed to map the ggtt page table\n");
+               drm_err(&i915->drm, "Failed to map the ggtt page table\n");
                return -ENOMEM;
        }
 
        ret = setup_scratch_page(&ggtt->vm, GFP_DMA32);
        if (ret) {
-               DRM_ERROR("Scratch setup failed\n");
+               drm_err(&i915->drm, "Scratch setup failed\n");
                /* iounmap will also get called at remove, but meh */
                iounmap(ggtt->gsm);
                return ret;
        if (!err)
                err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(39));
        if (err)
-               DRM_ERROR("Can't set DMA mask/consistent mask (%d)\n", err);
+               drm_err(&i915->drm,
+                       "Can't set DMA mask/consistent mask (%d)\n", err);
 
        pci_read_config_word(pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
        if (IS_CHERRYVIEW(i915))
         * just a coarse sanity check.
         */
        if (ggtt->mappable_end < (64<<20) || ggtt->mappable_end > (512<<20)) {
-               DRM_ERROR("Unknown GMADR size (%pa)\n", &ggtt->mappable_end);
+               drm_err(&i915->drm, "Unknown GMADR size (%pa)\n",
+                       &ggtt->mappable_end);
                return -ENXIO;
        }
 
        if (!err)
                err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(40));
        if (err)
-               DRM_ERROR("Can't set DMA mask/consistent mask (%d)\n", err);
+               drm_err(&i915->drm,
+                       "Can't set DMA mask/consistent mask (%d)\n", err);
        pci_read_config_word(pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
 
        size = gen6_get_total_gtt_size(snb_gmch_ctl);
 
        ret = intel_gmch_probe(i915->bridge_dev, i915->drm.pdev, NULL);
        if (!ret) {
-               DRM_ERROR("failed to set up gmch\n");
+               drm_err(&i915->drm, "failed to set up gmch\n");
                return -EIO;
        }
 
                return ret;
 
        if ((ggtt->vm.total - 1) >> 32) {
-               DRM_ERROR("We never expected a Global GTT with more than 32bits"
-                         " of address space! Found %lldM!\n",
-                         ggtt->vm.total >> 20);
+               drm_err(&i915->drm,
+                       "We never expected a Global GTT with more than 32bits"
+                       " of address space! Found %lldM!\n",
+                       ggtt->vm.total >> 20);
                ggtt->vm.total = 1ULL << 32;
                ggtt->mappable_end =
                        min_t(u64, ggtt->mappable_end, ggtt->vm.total);
        }
 
        if (ggtt->mappable_end > ggtt->vm.total) {
-               DRM_ERROR("mappable aperture extends past end of GGTT,"
-                         " aperture=%pa, total=%llx\n",
-                         &ggtt->mappable_end, ggtt->vm.total);
+               drm_err(&i915->drm,
+                       "mappable aperture extends past end of GGTT,"
+                       " aperture=%pa, total=%llx\n",
+                       &ggtt->mappable_end, ggtt->vm.total);
                ggtt->mappable_end = ggtt->vm.total;
        }
 
        /* GMADR is the PCI mmio aperture into the global GTT. */
-       DRM_DEBUG_DRIVER("GGTT size = %lluM\n", ggtt->vm.total >> 20);
-       DRM_DEBUG_DRIVER("GMADR size = %lluM\n", (u64)ggtt->mappable_end >> 20);
-       DRM_DEBUG_DRIVER("DSM size = %lluM\n",
-                        (u64)resource_size(&intel_graphics_stolen_res) >> 20);
+       drm_dbg(&i915->drm, "GGTT size = %lluM\n", ggtt->vm.total >> 20);
+       drm_dbg(&i915->drm, "GMADR size = %lluM\n",
+               (u64)ggtt->mappable_end >> 20);
+       drm_dbg(&i915->drm, "DSM size = %lluM\n",
+               (u64)resource_size(&intel_graphics_stolen_res) >> 20);
 
        return 0;
 }