|
@@ -61,7 +61,6 @@ static void i915_write_hws_pga(struct drm_device *dev)
|
|
|
static int i915_init_phys_hws(struct drm_device *dev)
|
|
|
{
|
|
|
drm_i915_private_t *dev_priv = dev->dev_private;
|
|
|
- struct intel_ring_buffer *ring = LP_RING(dev_priv);
|
|
|
|
|
|
/* Program Hardware Status Page */
|
|
|
dev_priv->status_page_dmah =
|
|
@@ -71,10 +70,9 @@ static int i915_init_phys_hws(struct drm_device *dev)
|
|
|
DRM_ERROR("Can not allocate hardware status page\n");
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
- ring->status_page.page_addr =
|
|
|
- (void __force __iomem *)dev_priv->status_page_dmah->vaddr;
|
|
|
|
|
|
- memset_io(ring->status_page.page_addr, 0, PAGE_SIZE);
|
|
|
+ memset_io((void __force __iomem *)dev_priv->status_page_dmah->vaddr,
|
|
|
+ 0, PAGE_SIZE);
|
|
|
|
|
|
i915_write_hws_pga(dev);
|
|
|
|